summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/mixlib/shellout/windows.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mixlib/shellout/windows.rb b/lib/mixlib/shellout/windows.rb
index 3251f66..a513186 100644
--- a/lib/mixlib/shellout/windows.rb
+++ b/lib/mixlib/shellout/windows.rb
@@ -37,8 +37,8 @@ module Mixlib
# Option validation that is windows specific
def validate_options(opts)
- if opts["user"]
- unless opts["password"] && opts["domain"]
+ if opts[:user]
+ unless opts[:password] && opts[:domain]
raise InvalidCommandOption, "You must supply both a username and password when supplying a user in windows"
end
end