lib/kontena/machine/upcloud/node_provisioner.rb in kontena-cli-0.14.0 vs lib/kontena/machine/upcloud/node_provisioner.rb in kontena-cli-0.14.1
- old
+ new
@@ -32,9 +32,11 @@
version: opts[:version],
master_uri: opts[:master_uri],
grid_token: opts[:grid_token],
}
+ abort_unless_api_access
+
abort('CoreOS template not found on Upcloud') unless coreos_template = find_template('CoreOS Stable')
abort('Server plan not found on Upcloud') unless plan = find_plan(opts[:plan])
abort('Zone not found on Upcloud') unless zone_exist?(opts[:zone])
hostname = generate_name