Skip to content

Commit

Permalink
Allow location_type to use name for lookup
Browse files Browse the repository at this point in the history
Currently location_types that use the name to reference the related
object will always report as "changed" since it compares the name with
the ID of the existing location_type. Updated to convert name to ID.
  • Loading branch information
jmcgill298 committed Aug 28, 2024
1 parent f736f4a commit bce9624
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/module_utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
installed_device="name",
import_targets="name",
location="name",
location_type="name",
manufacturer="name",
master="name",
nat_inside="address",
Expand Down Expand Up @@ -175,6 +176,7 @@
"ipaddresses": "ip_addresses",
"lag": "interfaces",
"location": "locations",
"location_type": "location_types",
"manufacturer": "manufacturers",
"master": "devices",
"nat_inside": "ip_addresses",
Expand Down

0 comments on commit bce9624

Please sign in to comment.