Skip to content

Commit

Permalink
fix: add k8s config files after creation
Browse files Browse the repository at this point in the history
  • Loading branch information
manekinekko committed Oct 30, 2019
1 parent 9ebd233 commit 56fc54c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/features/kubernetes/index.ts
Expand Up @@ -27,7 +27,7 @@ module.exports = async function() {

if (kubeClustersList.length === 0) {
// no cluster found, create one
return (await require(`./create`))(creationMode);
await (require(`./create`)(creationMode));
}

if (creationMode === "AUTOMATIC") {
Expand All @@ -43,7 +43,7 @@ module.exports = async function() {
selectedClusterId = cluster.id;
} else {
// we founf one cluster but it was not created by Hexa, go ahead and automatically create one
return (await require(`./create`))("AUTOMATIC");
await (require(`./create`)("AUTOMATIC"));
}
} else {
// we found many clusters, let the user choose the right one
Expand All @@ -55,7 +55,7 @@ module.exports = async function() {

if (selectedClusterId === "MANUAL") {
// the user expliticitly chooses to manually create a new cluster
return (await require(`./create`))("MANUAL");
await (require(`./create`)("MANUAL"));
}

const { id, name, hostname } = kubeClustersList.find((cluster: AzureKubernetesCluster) => cluster.id === selectedClusterId) as AzureKubernetesCluster;
Expand Down

0 comments on commit 56fc54c

Please sign in to comment.