From 868935f5e809a2187b1ac0dc71ba0abe13b291f3 Mon Sep 17 00:00:00 2001 From: Kieron Bulloch Date: Tue, 24 Jun 2014 23:34:50 -0400 Subject: [PATCH] Improving readability. --- cloud-image/create_image.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloud-image/create_image.py b/cloud-image/create_image.py index 4bc56b8b..8de039c3 100644 --- a/cloud-image/create_image.py +++ b/cloud-image/create_image.py @@ -176,12 +176,12 @@ def create_script(git_url, git_branch, on_boot): script_template = Template(open('script_template', 'r').read()) - p = dict(git_url=git_url, git_branch=git_branch, rc_local='') + params = {'git_url': git_url, 'git_branch': git_branch, 'rc_local': ''} if on_boot: - p['rc_local'] = "echo '/usr/local/bin/gns3-server' >> /etc/rc.local" + params['rc_local'] = "echo '/usr/local/bin/gns3-server' >> /etc/rc.local" - return script_template.substitute(p) + return script_template.substitute(params) def create_image(username, password, tenant, region, server,