Commit 7e3eb257 authored by Michael Kozono's avatar Michael Kozono

Fix for null DN

parent f610fea7
...@@ -202,7 +202,7 @@ module Gitlab ...@@ -202,7 +202,7 @@ module Gitlab
# Returns the DN as an array in the form expected by the constructor. # Returns the DN as an array in the form expected by the constructor.
def to_a def to_a
a = [] a = []
self.each_pair { |key, value| a << key << value } self.each_pair { |key, value| a << key << value } unless @dn.empty?
a a
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment