]> Frank Brehm's Git Trees - pixelpark/create-terraform.git/commitdiff
Fixing generation of instance file in lib/cr_tf/handler.py
authorFrank Brehm <frank.brehm@pixelpark.com>
Tue, 4 Jan 2022 17:40:12 +0000 (18:40 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Tue, 4 Jan 2022 17:40:12 +0000 (18:40 +0100)
lib/cr_tf/handler.py

index b2d6db84faae6ddb567e1846d669b0a09b1cf5cd..6a5f6abe391483e8f75b1f7e74331285e48ef376 100644 (file)
@@ -67,7 +67,7 @@ from .terraform.disk import TerraformDisk
 
 from .xlate import XLATOR
 
-__version__ = '3.6.8'
+__version__ = '3.6.9'
 LOG = logging.getLogger(__name__)
 
 _ = XLATOR.gettext
@@ -2741,7 +2741,7 @@ class CreateTerraformHandler(BaseHandler):
         cmd = ("/tmp/create-motd --purpose '{p}' --hardware 'vmware (x86_64)' --owner '{o}' "
                 "--zone 'VMWare' --customer '{c}'  --email '{m}' --tier '{t}' "
                 "--environment '{e}' --role '{r}'").format( p=purpose, t=vm.puppet_tier, o=vm.customer,
-                c=vm.puppet_customer, m=vm.puppet_contact, e=vm.puppet_env)
+                c=vm.puppet_customer, m=vm.puppet_contact, e=vm.puppet_env, r=vm.puppet_role)
         if vm.puppet_project:
             cmd += " --project '{pr}'".format(pr=vm.puppet_project)
         cmd += " | tee /etc/motd"