summaryrefslogtreecommitdiff
path: root/lib/chef/util/windows
diff options
context:
space:
mode:
authoradamedx <adamed@opscode.com>2013-06-25 06:34:33 -0700
committeradamedx <adamed@opscode.com>2013-06-25 07:24:05 -0700
commit003b3ee70fa17dbb0b538f25684480a49dd19333 (patch)
tree17cbe1b5b7f7b9c77f487ec9c695e2fefee5b6ec /lib/chef/util/windows
parent8a63098cf318f8dd29ed54242df600a80c124da5 (diff)
downloadchef-003b3ee70fa17dbb0b538f25684480a49dd19333.tar.gz
Clarify comments on Windows API behavior with direct link to documentation
Diffstat (limited to 'lib/chef/util/windows')
-rw-r--r--lib/chef/util/windows/net_user.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/chef/util/windows/net_user.rb b/lib/chef/util/windows/net_user.rb
index 256fdc5f24..eb68f6cebc 100644
--- a/lib/chef/util/windows/net_user.rb
+++ b/lib/chef/util/windows/net_user.rb
@@ -189,7 +189,8 @@ class Chef::Util::Windows::NetUser < Chef::Util::Windows
user_modify do |user|
user[:flags] |= UF_ACCOUNTDISABLE
#This does not set the password to nil. It (for some reason) means to ignore updating the field.
- #please refer to https://github.com/jmccann/chef/commit/ff732aab4f7e79f215567bcc3dc4e4f7295207ee#commitcomment-3413715
+ #See similar behavior for the logon_hours field documented at
+ #http://msdn.microsoft.com/en-us/library/windows/desktop/aa371338%28v=vs.85%29.aspx
user[:password] = nil
end
end
@@ -197,8 +198,9 @@ class Chef::Util::Windows::NetUser < Chef::Util::Windows
def enable_account
user_modify do |user|
user[:flags] &= ~UF_ACCOUNTDISABLE
- #This does not set the password to nil. It (for some reason) means to ignore updating the field.
- #please refer to https://github.com/jmccann/chef/commit/ff732aab4f7e79f215567bcc3dc4e4f7295207ee#commitcomment-3413715
+ #This does not set the password to nil. It (for some reason) means to ignore updating the field.
+ #See similar behavior for the logon_hours field documented at
+ #http://msdn.microsoft.com/en-us/library/windows/desktop/aa371338%28v=vs.85%29.aspx
user[:password] = nil
end
end