From 675dd15df26235c4f5b8f4812c0718b67a7f7acb Mon Sep 17 00:00:00 2001 From: Jaime Melis Date: Tue, 4 Aug 2015 17:45:22 +0200 Subject: [PATCH] Feature #1727: Generic system to allow to resize on onetemplate instantiate from the CLI --- src/cli/one_helper.rb | 5 +++++ 1 file changed, 5 insertions(+) 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