diff --git a/src/cli/one_helper.rb b/src/cli/one_helper.rb index 1a76dc888b..c5d20f3295 100644 --- a/src/cli/one_helper.rb +++ b/src/cli/one_helper.rb @@ -879,12 +879,17 @@ EOT template='' objects.each do |obj| + obj, *extra_attributes = obj.split(":") res=parse_user_object(obj) return [-1, "#{section.capitalize} \"#{obj}\" malformed"] if !res user, object=*res template<<"#{section.upcase}=[\n" template<<" #{name.upcase}_UNAME=\"#{user}\",\n" if user + extra_attributes.each do |extra_attribute| + key, value = extra_attribute.split("=") + template<<" #{key.upcase}=\"#{value}\",\n" + end if object.match(/^\d+$/) template<<" #{name.upcase}_ID=#{object}\n" else