diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-08-13 05:28:00 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-08-25 09:04:44 -0700 |
commit | bd0cfc0b40bc0eeb04c409c54678b3429ce5b677 (patch) | |
tree | e4723d3b73359fa11948887639557fa1400199d0 /lib/chef/util | |
parent | f4fa7f0bca0b559811867633d7762986a4dd4811 (diff) | |
download | chef-bd0cfc0b40bc0eeb04c409c54678b3429ce5b677.tar.gz |
Add to_s to ps_credential
Diffstat (limited to 'lib/chef/util')
-rw-r--r-- | lib/chef/util/powershell/ps_credential.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/util/powershell/ps_credential.rb b/lib/chef/util/powershell/ps_credential.rb index 01f8c27b6c..3f4558a77c 100644 --- a/lib/chef/util/powershell/ps_credential.rb +++ b/lib/chef/util/powershell/ps_credential.rb @@ -29,6 +29,10 @@ class Chef::Util::Powershell "New-Object System.Management.Automation.PSCredential('#{@username}',('#{encrypt(@password)}' | ConvertTo-SecureString))" end + def to_s + to_psobject + end + private def encrypt(str) |