Skip to content

Typo in Device model #15111

@grncbg

Description

@grncbg

Deployment Type

Self-hosted

NetBox Version

v3.7.2

Python Version

3.8

Steps to Reproduce

error message is defined as "A U0 device type ...", but I think the correct definition is "A 0U device type ...".

# Prevent 0U devices from being assigned to a specific position
if hasattr(self, 'device_type'):
if self.position and self.device_type.u_height == 0:
raise ValidationError({
'position': _(
"A U0 device type ({device_type}) cannot be assigned to a rack position."
).format(device_type=self.device_type)
})

Expected Behavior

A 0U device type ({device_type}) cannot be assigned to a rack position.

Observed Behavior

A U0 device type ({device_type}) cannot be assigned to a rack position.

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions