only do az vm list for k8s
@@ -161,6 +161,7 @@ func (cli *CLIProvisioner) provision() error {
return errors.Wrap(err, "Error while trying to create deployment")
}
+ if cli.Config.IsKubernetes() {
// Store the hosts for future introspection
hosts, err := cli.Account.GetHosts(cli.Config.Name)
if err != nil {
@@ -176,6 +177,7 @@ func (cli *CLIProvisioner) provision() error {
}
cli.Masters = masters
cli.Agents = agents
+ }
return nil
}
