1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Merge pull request #2188 from Haokun-Chen/1849

fix credential form private key passphrase and authorize password error
This commit is contained in:
Haokun Chen 2018-06-19 11:11:30 -04:00 committed by GitHub
commit 598d6e8445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -62,6 +62,9 @@ function AddCredentialsController (models, $state, $scope, strings, componentsSt
delete data.inputs[gceFileInputSchema.id]; delete data.inputs[gceFileInputSchema.id];
} }
const filteredInputs = _.omit(data.inputs, (value) => value === '');
data.inputs = filteredInputs;
return credential.request('post', { data }); return credential.request('post', { data });
}; };

View File

@ -113,6 +113,9 @@ function EditCredentialsController (models, $state, $scope, strings, componentsS
delete data.inputs[gceFileInputSchema.id]; delete data.inputs[gceFileInputSchema.id];
} }
const filteredInputs = _.omit(data.inputs, (value) => value === '');
data.inputs = filteredInputs;
return credential.request('put', { data }); return credential.request('put', { data });
}; };