From 3e3d59ddf1902827450f0291ab02eb916278cc36 Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Sun, 17 Apr 2016 11:59:25 -0400 Subject: [PATCH] GCE: Fix upload of image to gcloud Two small fixes * syntax is `gcloud compute images`, not `gcloud compute image` * --source-uri= should be a single argument --- bootstrapvz/providers/gce/tasks/image.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrapvz/providers/gce/tasks/image.py b/bootstrapvz/providers/gce/tasks/image.py index bf66299..22fc4f4 100644 --- a/bootstrapvz/providers/gce/tasks/image.py +++ b/bootstrapvz/providers/gce/tasks/image.py @@ -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])