From 7a9e6f6a8f872528b9955cac86ff3006ea06e86a Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Wed, 19 Oct 2016 09:08:56 -0700 Subject: convert scm_password to property + make sensitive Signed-off-by: Lamont Granquist --- lib/chef/resource/scm.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/chef/resource/scm.rb b/lib/chef/resource/scm.rb index 1e8c71e59d..899d01c3f1 100644 --- a/lib/chef/resource/scm.rb +++ b/lib/chef/resource/scm.rb @@ -89,13 +89,7 @@ class Chef ) end - def svn_password(arg = nil) - set_or_return( - :svn_password, - arg, - :kind_of => String - ) - end + property :svn_password, String, sensitive: true def svn_arguments(arg = nil) @svn_arguments, arg = nil, nil if arg == false -- cgit v1.2.1 From d9322204d89278bfc08a9f2b4853c8ceac9a289b Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Wed, 19 Oct 2016 09:16:40 -0700 Subject: the password is also not desired_state should property-ize the rest of this as well Signed-off-by: Lamont Granquist --- lib/chef/resource/scm.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chef/resource/scm.rb b/lib/chef/resource/scm.rb index 899d01c3f1..533723c2c4 100644 --- a/lib/chef/resource/scm.rb +++ b/lib/chef/resource/scm.rb @@ -89,7 +89,7 @@ class Chef ) end - property :svn_password, String, sensitive: true + property :svn_password, String, sensitive: true, desired_state: false def svn_arguments(arg = nil) @svn_arguments, arg = nil, nil if arg == false -- cgit v1.2.1