Skip to content

Fix device_role to role breaking change in netbox_device module #1062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions plugins/modules/netbox_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
- Required if I(state=present) and the device does not exist yet
required: false
type: raw
device_role:
role:
description:
- Required if I(state=present) and the device does not exist yet
required: false
Expand Down Expand Up @@ -190,7 +190,7 @@
data:
name: Test Device
device_type: C9410R
device_role: Core Switch
role: Core Switch
site: Main
state: present

Expand All @@ -201,7 +201,7 @@
data:
name: ""
device_type: C9410R
device_role: Core Switch
role: Core Switch
site: Main
state: present

Expand All @@ -220,7 +220,7 @@
data:
name: Another Test Device
device_type: C9410R
device_role: Core Switch
role: Core Switch
site: Main
local_context_data:
bgp: "65000"
Expand Down Expand Up @@ -276,7 +276,7 @@ def main():
options=dict(
name=dict(required=True, type="str"),
device_type=dict(required=False, type="raw"),
device_role=dict(required=False, type="raw"),
role=dict(required=False, type="raw"),
tenant=dict(required=False, type="raw"),
platform=dict(required=False, type="raw"),
serial=dict(required=False, type="str"),
Expand Down