lib/vagrant-orchestrate/action/setcredentials.rb in vagrant-orchestrate-0.6.0 vs lib/vagrant-orchestrate/action/setcredentials.rb in vagrant-orchestrate-0.6.1.patch

- old
+ new

@@ -36,9 +36,18 @@ [machine.config.winrm, machine.config.ssh].each do |config| next unless config config.username = username config.password = password end + + # If we're using WinRM, then we'll want to use SMB folder sync, which + # requires creds. + return unless machine.config.vm.communicator == :winrm + machine.config.vm.synced_folders.each do |_id, data| + puts data[:type] + data[:smb_username] = username + data[:smb_password] = password + end end def prompt_username(ui) default = ENV["USERNAME"] default ||= ENV["USER"]