Skip to content

Commit

Permalink
Merge pull request #485 from netscaler/serveridem
Browse files Browse the repository at this point in the history
Fixing server module idempotency in 2.7.0
  • Loading branch information
shivashankar-vaddepally authored Feb 10, 2025
2 parents cc34b23 + ecc0017 commit 98f1b1e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugins/module_utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,16 @@ def get_resource(client, resource_name, resource_id=None, resource_module_params
id=resource_id,
filter=get_args,
)
elif resource_name == "server":
if "ipaddress" in get_args:
get_args.pop("ipaddress")
if "domain" in get_args:
get_args.pop("domain")
status_code, response_body = client.get(
resource=resource_name,
id=resource_id,
args=get_args,
)
else:
status_code, response_body = client.get(
resource=resource_name,
Expand Down

0 comments on commit 98f1b1e

Please # to comment.