lib/cloudstack-nagios/commands/snmpd_config.rb in cloudstack-nagios-0.10.1 vs lib/cloudstack-nagios/commands/snmpd_config.rb in cloudstack-nagios-0.10.2
- old
+ new
@@ -42,11 +42,11 @@
vms = router_ips
end
hosts = vms.map do |router|
host = SSHKit::Host.new("root@#{router}")
host.ssh_options = sshoptions(options[:ssh_key])
- host.port = options[:port]
+ host.port = options[:ssh_port]
host
end
say 'Connect to router and enable snmpd...', :yellow
on hosts, in: :sequence, wait: 10 do
begin
@@ -73,6 +73,6 @@
ips
end
end
-end
+end
\ No newline at end of file