How to access service dialog input in the default Naming method?


I’m trying to provision a vm from a service catalog and I want the name in RHEV to be: [dialog_input]-[vm_prefix]-[incremental digit]. Example: myserver-cfme-001

Where dialog_input is a user input from the service dialog and vm_prefix is the attribute on the Naming instance.
How can I access this input text in the default Naming method to be able to add it in $evm.object[‘vmname’]?

The naming method I’m talking about is /Infrastructure/VM/Provisioning/Naming/vmname


I noticed this too. It seems the naming code is running before CatalogItemInitialization actually populates the data from the dialog.

I worked around this by putting the VM naming code in the CustomizeRequest stage in the VM provisoining state machine.