GCE: Fix upload of image to gcloud

Two small fixes

* syntax is `gcloud compute images`, not `gcloud compute image`
* --source-uri=<uri> should be a single argument
This commit is contained in:
Justin Santa Barbara 2016-04-17 11:59:25 -04:00
parent 9e332b2f86
commit 3e3d59ddf1

View file

@ -56,6 +56,6 @@ class RegisterImage(Task):
if 'description' in info.manifest.provider:
image_description = info.manifest.provider['description']
log_check_call(['gcloud', 'compute', '--project=' + info.manifest.provider['gce_project'],
'image', 'create', info._gce['image_name'], '--source-uri=',
info.manifest.provider['gcs_destination'] + info._gce['tarball_name'],
'images', 'create', info._gce['image_name'],
'--source-uri=' + info.manifest.provider['gcs_destination'] + info._gce['tarball_name'],
'--description=' + image_description])