diff options
author | Matt Clay <matt@mystile.com> | 2017-09-12 00:11:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-12 00:11:13 -0700 |
commit | 68aeaa58a89fdcf31511ddc61d7e4b51c0099d6a (patch) | |
tree | d277711f25deb91aa396b20521933417347828b4 /contrib/inventory/collins.py | |
parent | 5caa47feb9c8a2a769f8e1276dd8d88eddeb5161 (diff) | |
download | ansible-68aeaa58a89fdcf31511ddc61d7e4b51c0099d6a.tar.gz |
Fix dangerous default args. (#29839)
Diffstat (limited to 'contrib/inventory/collins.py')
-rwxr-xr-x | contrib/inventory/collins.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/inventory/collins.py b/contrib/inventory/collins.py index d7d8bc4f35..fb5efe5733 100755 --- a/contrib/inventory/collins.py +++ b/contrib/inventory/collins.py @@ -169,8 +169,9 @@ class CollinsInventory(object): print(data_to_print) return successful - def find_assets(self, attributes={}, operation='AND'): + def find_assets(self, attributes=None, operation='AND'): """ Obtains Collins assets matching the provided attributes. """ + attributes = {} if attributes is None else attributes # Formats asset search query to locate assets matching attributes, using # the CQL search feature as described here: |