diff --git a/awx/ui/client/src/credential-types/add/add.controller.js b/awx/ui/client/src/credential-types/add/add.controller.js index 4b9770689d..0c404e51db 100644 --- a/awx/ui/client/src/credential-types/add/add.controller.js +++ b/awx/ui/client/src/credential-types/add/add.controller.js @@ -92,7 +92,7 @@ export default ['Rest', 'Wait', Rest.post({ name: $scope.name, description: $scope.description, - kind: $scope.kind.value, + kind: "cloud", inputs: inputs, injectors: injectors }) diff --git a/awx/ui/client/src/credential-types/credential-types.form.js b/awx/ui/client/src/credential-types/credential-types.form.js index 289ed260d1..a933545fe7 100644 --- a/awx/ui/client/src/credential-types/credential-types.form.js +++ b/awx/ui/client/src/credential-types/credential-types.form.js @@ -35,35 +35,6 @@ export default ['i18n', function(i18n) { type: 'text', ngDisabled: '!(credential_type.summary_fields.user_capabilities.edit || canAdd)' }, - kind: { - label: i18n._('Kind'), - excludeModal: true, - type: 'select', - ngOptions: 'kind.label for kind in credential_kind_options track by kind.value', - required: true, - awPopOver: '
\n' + - '
' + i18n._('Machine') + '
\n' + - '
' + i18n._('Authentication for remote machine access. This can include SSH keys, usernames, passwords, ' + - 'and sudo information. Machine credentials are used when submitting jobs to run playbooks against ' + - 'remote hosts.') + '
' + - '
' + i18n._('Network') + '
\n' + - '
' + i18n._('Authentication for network device access. This can include SSH keys, usernames, passwords, ' + - 'and authorize information. Network credentials are used when submitting jobs to run playbooks against ' + - 'network devices.') + '
' + - '
' + i18n._('Source Control') + '
\n' + - '
' + i18n._('Used to check out and synchronize playbook repositories with a remote source control ' + - 'management system such as Git, Subversion (svn), or Mercurial (hg). These credentials are ' + - 'used by Projects.') + '
\n' + - '
' + i18n._('Cloud') + '
\n' + - '
' + i18n._('Usernames, passwords, and access keys for authenticating to the specified cloud or infrastructure ' + - 'provider. These are used for smart inventory sources and for cloud provisioning and deployment ' + - 'in playbook runs.') + '
\n' + - '
\n', - dataTitle: i18n._('Kind'), - dataPlacement: 'right', - dataContainer: "body", - ngDisabled: '!(credential_type.summary_fields.user_capabilities.edit || canAdd)' - }, inputs: { label: i18n._('Input Configuration'), class: 'Form-textAreaLabel Form-formGroup--fullWidth', diff --git a/awx/ui/client/src/credential-types/edit/edit.controller.js b/awx/ui/client/src/credential-types/edit/edit.controller.js index 775ebe6ce3..3d0e8550af 100644 --- a/awx/ui/client/src/credential-types/edit/edit.controller.js +++ b/awx/ui/client/src/credential-types/edit/edit.controller.js @@ -159,7 +159,7 @@ export default ['Rest', 'Wait', Rest.put({ name: $scope.name, description: $scope.description, - kind: $scope.kind.value, + kind: "cloud", inputs: inputs, injectors: injectors })