Skip to content

Commit

Permalink
set default port based on emstype
Browse files Browse the repository at this point in the history
  • Loading branch information
ilackarms committed Sep 28, 2017
1 parent cd3bc48 commit 9257438
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,11 @@ ManageIQ.angular.app.controller('emsCommonFormController', ['$http', '$scope', '

$scope.providerTypeChanged = function() {
if ($scope.emsCommonModel.ems_controller === 'ems_container') {
$scope.emsCommonModel.default_api_port = "8443"; // TODO: correct per-type port
if ($scope.emsCommonModel.emstype === 'kubernetes') {
$scope.emsCommonModel.default_api_port = "6443";
} else {
$scope.emsCommonModel.default_api_port = "8443";
}
return;
}
$scope.emsCommonModel.default_api_port = "";
Expand Down

0 comments on commit 9257438

Please sign in to comment.