mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
fix a bug in the Centrify Vault plugin
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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 = [
|
||||||
Reference in New Issue
Block a user