So i want to pass a variable (string) from the service dialog to a ruby script.
This is the only variable in the dialog. This variable is for example: “KL2_VL4004”
I called it “vlan” and i can see in the automation logs that the variable is read succesfully under the name: “dialog_vlan”.
However i can not pass it to a ruby script (which is executed while provisioning).
These are the things I’ve tried:
vlan = $evm.root[“dialog_vlan”]
vlan = $evm.root[“vlan”]
vlan = $evm.root[‘option_0_vlan’]
vlan = $evm.root[‘option_0_dialog_vlan’]
vlan = $evm.root[‘miq_provision’].get_option(‘dialog_vlan’)
vlan = $evm.root[‘miq_provision’].get_option(‘vlan’)
vlan = $evm.object[“dialog_vlan”]
vlan = $evm.object[‘vlan’]
vlan = dialog_options[‘dialog_vlan’]
Does anyone know how to do this?
Thanks in advance.