fix a bug in the Centrify Vault plugin

This commit is contained in:
Ryan Petrello
2021-03-10 10:09:01 -05:00
parent 764322b87b
commit 1b2d457090
2 changed files with 3 additions and 3 deletions

View File

@@ -89,7 +89,7 @@ def get_ID(**kwargs):
result_str = response.json()["Result"]["Results"] result_str = response.json()["Result"]["Results"]
return result_str[0]["Row"]["ID"] return result_str[0]["Row"]["ID"]
except (IndexError, KeyError): except (IndexError, KeyError):
raise RuntimeError("Error Detected!! Check the Inputs") raise RuntimeError("Error Detected!! Check the Inputs")
# CheckOut Password from Centrify Vault, Input : ID # CheckOut Password from Centrify Vault, Input : ID
@@ -123,7 +123,7 @@ def centrify_backend(**kwargs):
endpoint = { endpoint = {
'endpoint': endpoint, 'endpoint': endpoint,
'client_id': client_id, 'client_id': client_id,
'client_password': client_password 'client_password': client_password,
'oauth_scope': kwargs.get('oauth_scope', 'awx') 'oauth_scope': kwargs.get('oauth_scope', 'awx')
} }
token = handle_auth(**endpoint) token = handle_auth(**endpoint)

View File

@@ -12,7 +12,7 @@ def setup_tower_managed_defaults(apps, schema_editor):
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
('main', '0123_drop_hg_support'), ('main', '0129_unifiedjob_installed_collections'),
] ]
operations = [ operations = [