summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/remote/leap_plugin.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/leap_cli/remote/leap_plugin.rb b/lib/leap_cli/remote/leap_plugin.rb
index 3e33a61..0106d85 100644
--- a/lib/leap_cli/remote/leap_plugin.rb
+++ b/lib/leap_cli/remote/leap_plugin.rb
@@ -36,7 +36,8 @@ module LeapCli; module Remote; module LeapPlugin
rescue Capistrano::CommandError => exc
LeapCli::Util.bail! do
exc.hosts.each do |host|
- LeapCli::Util.log :error, "running deploy: node not initialized. Run 'leap node init #{host}'", :host => host
+ node = host.to_s.split('.').first
+ LeapCli::Util.log :error, "running deploy: node not initialized. Run 'leap node init #{node}'", :host => host
end
end
end