With the VMWare vSphere provider, if an ops instance create command is issued with an invalid image name, the CreateVM() function fails with an "Invalid configuration for device '1'" error message, from which it's difficult to infer the root cause of the problem. This change adds a call to Stat() on the datastore in order to check that the image file from which an the instance disk is being created exists, and report that the image name is invalid if the file is not found.
return appropriate error when image not found
With the VMWare vSphere provider, if an
ops instance create
command is issued with an invalid image name, the CreateVM() function fails with an "Invalid configuration for device '1'" error message, from which it's difficult to infer the root cause of the problem. This change adds a call to Stat() on the datastore in order to check that the image file from which an the instance disk is being created exists, and report that the image name is invalid if the file is not found. return appropriate error when image not found