Fix for null DN
This commit is contained in:
parent
f610fea777
commit
7e3eb257ba
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue