Skip to content

Commit

Permalink
Merge pull request #3143 from joshcooper/ticket/master/PUP-2647-passw…
Browse files Browse the repository at this point in the history
…ord-changed

(PUP-2647) Report when password is changed
  • Loading branch information
adrienthebo committed Oct 1, 2014
2 parents 55d9243 + 7193960 commit c006dba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/puppet/provider/user/windows_adsi.rb
Expand Up @@ -71,7 +71,7 @@ def home=(value)
end

def password
user.password_is?( @resource[:password] ) ? @resource[:password] : :absent
user.password_is?( @resource[:password] ) ? @resource[:password] : nil
end

def password=(value)
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/provider/user/windows_adsi_spec.rb
Expand Up @@ -111,7 +111,7 @@
resource[:password] = 'plaintext'
provider.user.expects(:password_is?).with('plaintext').returns false

provider.password.should == :absent
provider.password.should be_nil
end

it 'should not create a user if a group by the same name exists' do
Expand Down

0 comments on commit c006dba

Please sign in to comment.