From ad5acc562718df0505a318907e26185c8b91a284 Mon Sep 17 00:00:00 2001 From: elijah Date: Thu, 25 Aug 2016 10:22:34 -0700 Subject: leap vm: require ip address instead of status running for leap vm bind. --- lib/leap_cli/cloud/cloud.rb | 4 ++-- 1 file 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 -- cgit v1.2.3