mirror of
https://github.com/ansible/awx.git
synced 2026-02-15 02:00:01 -03:30
Made username/password/tenant_id/client_id/client_secret all optional when creating an Azure Resource Manager credential.
This commit is contained in:
@@ -310,10 +310,6 @@ export default
|
||||
client:{
|
||||
type: 'text',
|
||||
label: 'Client ID',
|
||||
awRequiredWhen: {
|
||||
reqExpression: "azure_rm_required",
|
||||
init: false
|
||||
},
|
||||
subForm: 'credentialSubForm',
|
||||
ngShow: "kind.value === 'azure_rm'"
|
||||
},
|
||||
@@ -322,20 +318,12 @@ export default
|
||||
hasShowInputButton: true,
|
||||
autocomplete: false,
|
||||
label: 'Client Secret',
|
||||
awRequiredWhen: {
|
||||
reqExpression: "azure_rm_required",
|
||||
init: false
|
||||
},
|
||||
subForm: 'credentialSubForm',
|
||||
ngShow: "kind.value === 'azure_rm'"
|
||||
},
|
||||
tenant: {
|
||||
type: 'text',
|
||||
label: 'Tenent ID',
|
||||
awRequiredWhen: {
|
||||
reqExpression: "azure_rm_required",
|
||||
init: false
|
||||
},
|
||||
subForm: 'credentialSubForm',
|
||||
ngShow: "kind.value === 'azure_rm'"
|
||||
},
|
||||
|
||||
@@ -119,8 +119,6 @@ angular.module('CredentialsHelper', ['Utilities'])
|
||||
case 'azure_rm':
|
||||
scope.usernameLabel = "Username";
|
||||
scope.subscription_required = true;
|
||||
scope.username_required = true;
|
||||
scope.password_required = true;
|
||||
scope.passwordLabel = 'Password';
|
||||
scope.azure_rm_required = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user