lib/app42/command/base.rb in app42-0.5.4 vs lib/app42/command/base.rb in app42-0.5.5

- old
+ new

@@ -140,12 +140,12 @@ return operating_sys['osDetail'][0]['id'] end end # get supported vm configuration by app42paas - def get_vmconfig vm_type, iaas + def get_vmconfig resource, vm_type, iaas vmconfig_hash = {} - vmconfig = App42::Command::Config.new.get_vmconfig(vm_type, iaas) + vmconfig = App42::Command::Config.new.get_vmconfig(resource, vm_type, iaas) vmconfig['vmconfig'].select {|each_vmcf| vmconfig_hash["#{each_vmcf['id']}"] = each_vmcf['memory'] + ' ' + each_vmcf['memoryUnit']} vm_cf = input "Memory Limit", vmconfig_hash.values, true vm_cf_id = nil \ No newline at end of file