summaryrefslogtreecommitdiff
path: root/lib/leap_cli/cloud
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-08-25 10:22:34 -0700
committerelijah <elijah@riseup.net>2016-08-25 10:22:34 -0700
commitad5acc562718df0505a318907e26185c8b91a284 (patch)
treeaa20423f4a6a51e52e69ae3ca9e02660e36afd8f /lib/leap_cli/cloud
parentb928a8f29b40df545ac6a72ead6cb9ed6a36fbda (diff)
leap vm: require ip address instead of status running for leap vm bind.
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