lib/vagrant-orchestrate/action/setcredentials.rb in vagrant-orchestrate-0.4.4 vs lib/vagrant-orchestrate/action/setcredentials.rb in vagrant-orchestrate-0.4.5
- old
+ new
@@ -45,11 +45,10 @@
[config_creds.username, config_creds.password]
end
def apply_creds(username, password)
- configs = [@machine.config.winrm, @machine.config.ssh]
- configs.each do |config|
+ [@machine.config.winrm, @machine.config.ssh].each do |config|
next unless config
config.username = username
config.password = password
end
end