Is there any way I can convert an array/vc:datastore to vc:datastore? I'm trying to automate adding a drive to servers without needing user interaction for a swap drive. I'm able to query the datastore the VM runs on, but its in an array format.
I tried just injecting custom properties to the VM prior to the actual cloning process. It just fails with bad datastore path.