Fix for null DN

This commit is contained in:
Michael Kozono 2017-09-20 15:29:45 -07:00
parent f610fea777
commit 7e3eb257ba

View file

@ -202,7 +202,7 @@ module Gitlab
# Returns the DN as an array in the form expected by the constructor.
def to_a
a = []
self.each_pair { |key, value| a << key << value }
self.each_pair { |key, value| a << key << value } unless @dn.empty?
a
end