Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

convert string to Vc:Datastore

$
0
0

I have 2 scripts that go out and retrieve all available datastores for a given cluster. I then place the datastore name, Provisionedspace and vmcount values into an array. I parse the array and come up with the datastore name that meets my constraints and spits out the ds name into a string variable I call bestDatastore. I want to pass this string variable bestDatastore to the sub-workflow that clones the vm. I am linking the string variable bestDatastore to the VC:Datastore input on the clone windows vm workflow. The workflow complains with a Warning error that the inputs are not the same and I get the error when I run: [2014-11-04 15:27:16.865] [I] Workflow:LM Get Best Datastore / getBestvmDatastore (item1) : ch.dunes.model.type.ConvertorException: Unable to convert object, 'my_datastore' plugin unexcepted exception : Bad type syntax 'string' How can I take the string value of a datastore and place it in a VC:Datastore type?


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>