summaryrefslogtreecommitdiff
path: root/lib/leap_cli/cloud
diff options
context:
space:
mode:
Diffstat (limited to 'lib/leap_cli/cloud')
-rw-r--r--lib/leap_cli/cloud/cloud.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/leap_cli/cloud/cloud.rb b/lib/leap_cli/cloud/cloud.rb
index 86a84e69..e4b00107 100644
--- a/lib/leap_cli/cloud/cloud.rb
+++ b/lib/leap_cli/cloud/cloud.rb
@@ -126,9 +126,9 @@ module LeapCli
unless @node
raise ArgumentError, 'no node'
end
- unless server.state == 'running'
+ if server.public_ip_address.nil?
bail! do
- log 'The virtual machine `%s` must be running in order to bind it to the configuration `%s`.' % [
+ log 'The virtual machine `%s` must have an IP address in order to bind it to the configuration `%s`.' % [
server.id, Path.relative_path(Path.named_path([:node_config, @node.name]))]
log 'To fix, run `leap vm start %s`' % server.id
end