diff --git a/contrib/inventory/collins.ini b/contrib/inventory/collins.ini index 748fcf854a..0ce0c2acbd 100644 --- a/contrib/inventory/collins.ini +++ b/contrib/inventory/collins.ini @@ -3,6 +3,8 @@ [collins] +# You should not have a trailing slash or collins +# will not properly match the URI host = http://localhost:9000 username = blake diff --git a/contrib/inventory/collins.py b/contrib/inventory/collins.py index bbcb32b017..b7193e2f8f 100755 --- a/contrib/inventory/collins.py +++ b/contrib/inventory/collins.py @@ -201,7 +201,8 @@ class CollinsInventory(object): response = open_url(query_url, timeout=self.collins_timeout_secs, url_username=self.collins_username, - url_password=self.collins_password) + url_password=self.collins_password, + force_basic_auth=True) json_response = json.loads(response.read()) # Adds any assets found to the array of assets. assets += json_response['data']['Data']