Hi,
I’ve got a service catalog item and I’m ordering it using REST API. Upon provisioning, I wanted to tag the service & VM being provisioned using automate method.
Method
tag = $evm.root['dialog_dept_tag']
prov = $evm.root['miq_provision']
prov.add_tag(:department, tag)
Error
ERROR -- : Q-task_id([service_template_provision_task_252]) <AEMethod tag_service> NoMethodError: undefined method `add_tag' for nil:NilClass
Tried the following but no luck.
- mapped tag_service method with pre1/post1 step
- used service_template_provision_request instead of miq_provision
All I’m looking is to get a tag assigned to the Service object & its VMs being provisioned. Thanks for any help to sort this out.