Exception when adding a power outlet to a device type #2679

Closed
opened 2025-12-29 18:21:04 +01:00 by adam · 2 comments
Owner

Originally created by @benohara on GitHub (Jun 21, 2019).

Environment

  • Python version: 3.6.8
  • NetBox version: 2.6.0

Steps to Reproduce

  1. On device type, click 'add components' and select 'power outlets'
  2. Add a name (either singular or regex) and click 'create'

Expected Behavior

The device type should be updated with the requested ports

Observed Behavior

The following exception is thrown

<class 'AttributeError'>

'PowerOutletTemplateForm' object has no attribute 'parent'

No ports are created on the 'device type'

This works on 'devices'

Originally created by @benohara on GitHub (Jun 21, 2019). ### Environment * Python version: 3.6.8 * NetBox version: 2.6.0 ### Steps to Reproduce 1. On device type, click 'add components' and select 'power outlets' 2. Add a name (either singular or regex) and click 'create' ### Expected Behavior The device type should be updated with the requested ports ### Observed Behavior The following exception is thrown ``` <class 'AttributeError'> 'PowerOutletTemplateForm' object has no attribute 'parent' ``` No ports are created on the 'device type' This works on 'devices'
adam added the type: bugstatus: accepted labels 2025-12-29 18:21:04 +01:00
adam closed this issue 2025-12-29 18:21:04 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jun 21, 2019):

This issue has been closed as it does not conform to one of the provided templates as required by the contributing guide. If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely).

@jeremystretch commented on GitHub (Jun 21, 2019): This issue has been closed as it does not conform to one of the [provided templates](https://github.com/digitalocean/netbox/issues/new/choose) as required by the [contributing guide](https://github.com/digitalocean/netbox/blob/master/CONTRIBUTING.md). If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely).
Author
Owner

@benohara commented on GitHub (Jun 21, 2019):

@jeremystretch can you reopen?

@benohara commented on GitHub (Jun 21, 2019): @jeremystretch can you reopen?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2679