NetDocuments-Archive / rd-winrm-plugin

Allows rundeck to execute commands with powershell
Apache License 2.0
31 stars 19 forks source link

Question : About files winrmexe.rb and winrmcp.rb #44

Closed FireHelmet closed 6 years ago

FireHelmet commented 7 years ago

Hello,

I have a question about this files winrmexe.rb and winrmcp.rb. Is it normal that the lines contained "override == user" and not "override == pass" in :

Line 15 for winrmexe.rb pass = ENV['RD_OPTION_WINRMPASS'].dup if ENV['RD_OPTION_WINRMPASS'] && (override == 'user' || override == 'all')

Line 14 for winrmcp.rb pass = ENV['RD_OPTION_WINRMPASS'].dup if ENV['RD_OPTION_WINRMPASS'] && (override == 'user' || override == 'all')

Thank you !

vvchik commented 7 years ago

User will not work without pass, but pass without user not useful anyway, so It is not needed in this context.