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:
commit
598d6e8445
@ -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 });
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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 });
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user