Skip to content

Commit c7f91c4

Browse files
authored
Update dependencies (#717)
* Update dependencies
1 parent 166666f commit c7f91c4

File tree

4 files changed

+269
-254
lines changed

4 files changed

+269
-254
lines changed

plugins/lookup/nb_lookup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def run(self, terms, variables=None, **kwargs):
420420
)
421421

422422
Display().vvvv(
423-
u"NetBox lookup for %s to %s using token %s filter %s"
423+
"NetBox lookup for %s to %s using token %s filter %s"
424424
% (term, netbox_api_endpoint, netbox_api_token, netbox_api_filter)
425425
)
426426

@@ -429,7 +429,7 @@ def run(self, terms, variables=None, **kwargs):
429429

430430
if "id" in filter:
431431
Display().vvvv(
432-
u"Filter is: %s and includes id, will use .get instead of .filter"
432+
"Filter is: %s and includes id, will use .get instead of .filter"
433433
% (filter)
434434
)
435435
try:

plugins/module_utils/netbox_utils.py

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,22 +1045,18 @@ def _find_ids(self, data, user_query_params):
10451045
elif isinstance(v, list):
10461046
id_list = list()
10471047
for list_item in v:
1048-
if (
1049-
k
1050-
in (
1051-
"regions",
1052-
"sites",
1053-
"roles",
1054-
"device_types",
1055-
"platforms",
1056-
"cluster_groups",
1057-
"contact_groups",
1058-
"tenant_groups",
1059-
"tenants",
1060-
"tags",
1061-
)
1062-
and isinstance(list_item, str)
1063-
):
1048+
if k in (
1049+
"regions",
1050+
"sites",
1051+
"roles",
1052+
"device_types",
1053+
"platforms",
1054+
"cluster_groups",
1055+
"contact_groups",
1056+
"tenant_groups",
1057+
"tenants",
1058+
"tags",
1059+
) and isinstance(list_item, str):
10641060
temp_dict = {"slug": self._to_slug(list_item)}
10651061
elif isinstance(list_item, dict):
10661062
norm_data = self._normalize_data(list_item)

0 commit comments

Comments
 (0)