We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38a7f13 commit a16d61aCopy full SHA for a16d61a
cookbooks/aws-parallelcluster-environment/libraries/directory_service_utils.rb
@@ -21,10 +21,8 @@ def parse_arn(arn_string)
21
def _get_cn_subparam(param)
22
tokens = param.split(",") unless param.blank?
23
tokens.each do |token|
24
- ['cn=', 'CN='].each do |param_search|
25
- Chef::Log.info("Token is #{token} and param search is #{param_search} and condition #{token.include? param_search}")
26
- return token if token.include? param_search
27
- end
+ Chef::Log.info("Token is #{token} and condition #{token.downcase.start_with? "cn="}")
+ return token if token.downcase.start_with? "cn"
28
end
29
""
30
0 commit comments