lib/vagrant-orchestrate/action/setcredentials.rb in vagrant-orchestrate-0.4.6 vs lib/vagrant-orchestrate/action/setcredentials.rb in vagrant-orchestrate-0.4.7

- old
+ new

@@ -10,15 +10,15 @@ config_creds.password = ENV["VAGRANT_ORCHESTRATE_PASSWORD"] || config_creds.password # Use credentials file to any username or password that is still undiscovered check_creds_file(config_creds, ui) unless config_creds.username && config_creds.password - config_creds = maybe_prompt(config_creds) + config_creds = maybe_prompt(config_creds, ui) [config_creds.username, config_creds.password] end - def maybe_prompt(config_creds) + def maybe_prompt(config_creds, ui) # Only prompt if allowed by config if config_creds.prompt config_creds.username ||= prompt_username(ui) config_creds.password ||= prompt_password(ui) end