mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
GCE: Allow templating of image description
Expand the description template before passing it to gcloud
This commit is contained in:
parent
3e3d59ddf1
commit
34ee0c1e8d
1 changed files with 1 additions and 0 deletions
|
@ -55,6 +55,7 @@ class RegisterImage(Task):
|
|||
image_description = info._gce['lsb_description']
|
||||
if 'description' in info.manifest.provider:
|
||||
image_description = info.manifest.provider['description']
|
||||
image_description = image_description.format(**info.manifest_vars)
|
||||
log_check_call(['gcloud', 'compute', '--project=' + info.manifest.provider['gce_project'],
|
||||
'images', 'create', info._gce['image_name'],
|
||||
'--source-uri=' + info.manifest.provider['gcs_destination'] + info._gce['tarball_name'],
|
||||
|
|
Loading…
Add table
Reference in a new issue