diff options
author | nimisha <nimisha.sharad@msystechnologies.com> | 2017-02-02 15:47:36 +0530 |
---|---|---|
committer | nimisha <nimisha.sharad@msystechnologies.com> | 2017-02-02 19:15:23 +0530 |
commit | beb4953af6cc5bec7104616af9f15b0dc3223dcb (patch) | |
tree | 5947f01afee23d67c3d6b5442c27a6813106ee10 /lib/chef | |
parent | 5b0777edbedb8add8756721fafa4848dfcd4274d (diff) | |
download | chef-beb4953af6cc5bec7104616af9f15b0dc3223dcb.tar.gz |
Fixed specs
Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/resource/execute.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/chef/resource/execute.rb b/lib/chef/resource/execute.rb index 3bf504cb26..677c4608b3 100644 --- a/lib/chef/resource/execute.rb +++ b/lib/chef/resource/execute.rb @@ -141,6 +141,14 @@ class Chef property :password, String, sensitive: true + def sensitive(args = nil) + if password + true + else + super + end + end + def self.set_guard_inherited_attributes(*inherited_attributes) @class_inherited_attributes = inherited_attributes end |