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

Make sure we're comparing integers

This commit is contained in:
Michael Abashian 2017-07-11 14:31:57 -04:00
parent 73f0fd8baf
commit 690cb4ed6d

View File

@ -104,7 +104,7 @@ export default
}
}
else {
if($scope.selected_credentials.machine.credential_type === 1){
if(parseInt($scope.selected_credentials.machine.credential_type) === 1){
$scope.ssh_password_required = ($scope.selected_credentials.machine.inputs && $scope.selected_credentials.machine.inputs.password === "ASK") ? true : false;
$scope.ssh_key_unlock_required = ($scope.selected_credentials.machine.inputs && $scope.selected_credentials.machine.inputs.ssh_key_unlock === "ASK") ? true : false;
$scope.become_password_required = $scope.selected_credentials.machine.inputs && ($scope.selected_credentials.machine.inputs.become_password === "ASK") ? true : false;