Hi All, still new to MIQ. Been using Objectwalker and wondering how to translate the information back to automate code? Perhaps an example is easiet to show what I mean. The below indicates that there is a hash/array with the data I am after. I tried a few things:
data_centre = @handle.options(:dialog)
data_centre = @handle.options(:dialog_data_center)
data_centre = @handle.options[0]
data_centre = @handle.get_option(:dialog_data_center)
All pretty much erroring with the following result:
NoMethodError: undefined method `options’ for #MiqAeMethodService::MiqAeService:0x00000014763798
In this case I want to modify the vmname method, I am assuming what objectwalker dumps should be available for use there?
[----] I, [2017-05-13T21:15:49.851724 #12786:b2a479c] INFO – : Q-task_id([service_template_provision_request_51000000000253]) object_walker#29CD2B2A:[3] miq_
provision_request.options[:dialog] = {“dialog_job_template”=>“Db_MY”, “dialog_data_centre”=>“IMC3”, “dialog_itsm_env”=>“Development”, “dialog_datazone”=>“No”, “dialog_dmzzone”=>“No”, “
dialog_baas”=>“No”, “dialog_monitor”=>“No”, “dialog_envname”=>“Non-Prod”, “dialog_ip_addr”=>“10.213.148.230”, “dialog_vm_pre”=>"", “dialog_size_of_disks”=>"", “dialog_vm_size”=>“Small”
, “dialog_number_of_vms”=>""} (type: Hash)
Thanks