diff --git a/plugins/module_utils/client.py b/plugins/module_utils/client.py index 344af92e0..61a12b33c 100644 --- a/plugins/module_utils/client.py +++ b/plugins/module_utils/client.py @@ -77,7 +77,7 @@ def url_builder( ) # Append resource id - if id is not None: + if id: # if id is float type and it is equal to int(id) then convert it to int # Reason: nd6ravariables module has a primary key (vlan) of type float # however, the Nitro API expects the id to be of type int