mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
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:
parent
9e332b2f86
commit
3e3d59ddf1
1 changed files with 2 additions and 2 deletions
|
@ -56,6 +56,6 @@ class RegisterImage(Task):
|
||||||
if 'description' in info.manifest.provider:
|
if 'description' in info.manifest.provider:
|
||||||
image_description = info.manifest.provider['description']
|
image_description = info.manifest.provider['description']
|
||||||
log_check_call(['gcloud', 'compute', '--project=' + info.manifest.provider['gce_project'],
|
log_check_call(['gcloud', 'compute', '--project=' + info.manifest.provider['gce_project'],
|
||||||
'image', 'create', info._gce['image_name'], '--source-uri=',
|
'images', 'create', info._gce['image_name'],
|
||||||
info.manifest.provider['gcs_destination'] + info._gce['tarball_name'],
|
'--source-uri=' + info.manifest.provider['gcs_destination'] + info._gce['tarball_name'],
|
||||||
'--description=' + image_description])
|
'--description=' + image_description])
|
||||||
|
|
Loading…
Add table
Reference in a new issue