From 21189d25a9385aa9ff3368716824b8333475a08b Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Mon, 2 Jul 2018 14:55:20 -0700 Subject: fix Style/PreferredHashMethods absolutely hard requirement on the fixes that went into chef-config 2.2.11, so the floor of that gem is bumped up. Signed-off-by: Lamont Granquist --- lib/chef/win32/security.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/chef/win32') diff --git a/lib/chef/win32/security.rb b/lib/chef/win32/security.rb index 2f903d6c93..58f47e885b 100644 --- a/lib/chef/win32/security.rb +++ b/lib/chef/win32/security.rb @@ -537,14 +537,14 @@ class Chef # Determine the security_information flags security_information = 0 - security_information |= OWNER_SECURITY_INFORMATION if args.has_key?(:owner) - security_information |= GROUP_SECURITY_INFORMATION if args.has_key?(:group) - security_information |= DACL_SECURITY_INFORMATION if args.has_key?(:dacl) - security_information |= SACL_SECURITY_INFORMATION if args.has_key?(:sacl) - if args.has_key?(:dacl_inherits) + security_information |= OWNER_SECURITY_INFORMATION if args.key?(:owner) + security_information |= GROUP_SECURITY_INFORMATION if args.key?(:group) + security_information |= DACL_SECURITY_INFORMATION if args.key?(:dacl) + security_information |= SACL_SECURITY_INFORMATION if args.key?(:sacl) + if args.key?(:dacl_inherits) security_information |= (args[:dacl_inherits] ? UNPROTECTED_DACL_SECURITY_INFORMATION : PROTECTED_DACL_SECURITY_INFORMATION) end - if args.has_key?(:sacl_inherits) + if args.key?(:sacl_inherits) security_information |= (args[:sacl_inherits] ? UNPROTECTED_SACL_SECURITY_INFORMATION : PROTECTED_SACL_SECURITY_INFORMATION) end -- cgit v1.2.1