Navigation Menu

Skip to content

Commit

Permalink
default to creating an openshift or jclouds based container by defaul…
Browse files Browse the repository at this point in the history
…t if the provider is available
  • Loading branch information
jstrachan committed Aug 23, 2013
1 parent 3f14cd8 commit b96b54f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion hawtio-web/src/main/webapp/app/fabric/js/fabricView.ts
Expand Up @@ -625,7 +625,18 @@ module Fabric {


$scope.createContainer = () => {
$location.url('/fabric/containers/createContainer').search('tab', 'ssh');
var kind = null;
// lets see if there is an openshift option
var providers = registeredProviders(jolokia);
angular.forEach(["openshift", "jclouds"], (value) => {
if (!kind && providers[value]) {
kind = value;
}
});
if (!kind) {
kind = 'ssh';
}
$location.url('/fabric/containers/createContainer').search('tab', kind);
};


Expand Down

0 comments on commit b96b54f

Please sign in to comment.