From 34ee0c1e8d728811daf69ae97381ac4f0cf90572 Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Sun, 17 Apr 2016 12:00:44 -0400 Subject: [PATCH] GCE: Allow templating of image description Expand the description template before passing it to gcloud --- bootstrapvz/providers/gce/tasks/image.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bootstrapvz/providers/gce/tasks/image.py b/bootstrapvz/providers/gce/tasks/image.py index 22fc4f4..8a30a7e 100644 --- a/bootstrapvz/providers/gce/tasks/image.py +++ b/bootstrapvz/providers/gce/tasks/image.py @@ -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'],