Skip to content

Commit a541dfc

Browse files
author
Himani Anil Deshpande
committed
[Bug] Use DomainReadOnlyUser from the input provided in config
* Making the function case-sensitive and strickter as `cn` can be part of user-name too
1 parent 03ff273 commit a541dfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbooks/aws-parallelcluster-environment/libraries/directory_service_utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def parse_arn(arn_string)
2121
def _get_cn_subparam(param)
2222
tokens = param.split(",") unless param.blank?
2323
tokens.each do |token|
24-
return token if token.include? "cn"
24+
return token if token.downcase.start_with? "cn"
2525
end
2626
""
2727
end

0 commit comments

Comments
 (0)