Skip to content

Commit b0eb736

Browse files
BugFix: Incorrect search for device in netbox_dcim util (#117)
1 parent 85cc19f commit b0eb736

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99
global:
1010
- COLLECTION_NAMESPACE: netbox_community
1111
- COLLECTION_NAME: ansible_modules
12-
- COLLECTION_VERSION: 0.1.7
12+
- COLLECTION_VERSION: 0.1.8
1313
- secure: "tE6GtwrRU+Kjobx/94xqR2MqM20pHCnrLcHgPzIHA3npdwuA+GjCBiBLTkEEQM4fUWIfzUTyjSr9bZErm1PTI1GcIRdniTgJ3ZzSSkE7tgeYALB/7xsusB57SlmbBQm2SGwU558uWZ3NHEsi0WTgD8GKZo77OpGX72FZKsVXOz6k2wve51sOtoSVjgCsvWTmZHx4ynGdiA5wFkZfaEcjXECahKtunW+MlB5kpJzkVeLRUEXFMhWlsIYiA5nj8OI/X3Nk9ugh1ribENX9LrjpgrqQ9YariZ8G6py1ONuKZIn2g7xs5kNQ3qL6HL6N7SoUxiwH16CfSyugFaYiMfaxQ4NUVGGRHS4vSGbNIf+gLHcYvP40miI1f/+pntCzqygZMhW73FX2o+KH2OGv09khOl8k1nDg2/XvW0kCc/FU6l+Jp5wCC8H9X2uiULtQpRqts5TzIonlPEzGIpfGFgJ5m54Emhv9gjG1Z5OOyL/qae1Wr+L/uhiFafcglZYh8NHEMWCUCkeqFqR2kDmUMtdgYLD7Q7NdwlL/PSVVs1l7UPiQHlnecQKEHN7CvR3eKByTEmkCKafRYh/JQ9rBt9sZc7aAPVu+w3wWUwbHS4o4vVnmyXvJb1PeJSiuynF7CBo4Qd6qj4YwX8gLK6PylGyaMOp169u6xw1mo5/CX0pJ3x4="
1414

1515
matrix:
@@ -29,7 +29,7 @@ matrix:
2929
- pip install pytest==4.6.5 pytest-mock pytest-xdist jinja2 PyYAML black==19.10b0
3030
- pip install pynetbox cryptography codecov jmespath ansible
3131

32-
- name: "Python 3.6 - Netbox Latest - Ansible Devel"
32+
- name: "Python 3.6 - Netbox 2.6 - Ansible Devel"
3333
python: 3.6
3434
env: PYTHON_VER=3.6 VERSION=v2.6
3535
install:

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace: netbox_community
99
name: ansible_modules
1010

1111
# The version of the collection. Must be compatible with semantic versioning
12-
version: 0.1.7
12+
version: 0.1.8
1313

1414
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
1515
readme: README.md

plugins/module_utils/netbox_dcim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def run(self):
9494
if self.endpoint == "interfaces":
9595
if self.nb_object:
9696
if self.nb_object.device:
97-
device = nb_endpoint.get(self.nb_object.device.id)
97+
device = self.nb.dcim.devices.get(self.nb_object.device.id)
9898
if (
9999
device["virtual_chassis"]
100100
and self.nb_object.device.id != self.data["device"]

0 commit comments

Comments
 (0)