diff options
author | Sirushti Murugesan <sirushti.murugesan@hp.com> | 2015-05-25 11:35:02 +0530 |
---|---|---|
committer | Sirushti Murugesan <sirushti.murugesan@hp.com> | 2015-05-25 11:52:29 +0530 |
commit | 4a4641a0a29c46e82b34888733670d397d0777a7 (patch) | |
tree | e0c3df35b2f4a165155899db969d7493788ec339 /hot/software-config/elements/heat-config-ansible | |
parent | e4dccdee7abe90f7c29caf2b8cca3a874917474c (diff) | |
download | heat-templates-4a4641a0a29c46e82b34888733670d397d0777a7.tar.gz |
Upgrade Hacking version
Change-Id: Ib2fc7e0d8e27de2fef341e313e29904502158aa4
Closes-Bug: #1458450
Diffstat (limited to 'hot/software-config/elements/heat-config-ansible')
-rwxr-xr-x | hot/software-config/elements/heat-config-ansible/install.d/hook-ansible.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hot/software-config/elements/heat-config-ansible/install.d/hook-ansible.py b/hot/software-config/elements/heat-config-ansible/install.d/hook-ansible.py index 972bd32..2a46c7f 100755 --- a/hot/software-config/elements/heat-config-ansible/install.d/hook-ansible.py +++ b/hot/software-config/elements/heat-config-ansible/install.d/hook-ansible.py @@ -57,11 +57,11 @@ def main(argv=sys.argv): if not config_text: log.warn("No 'config' input found, nothing to do.") return - #Write 'variables' to file + # Write 'variables' to file with os.fdopen(os.open( vars_filename, os.O_CREAT | os.O_WRONLY, 0o600), 'w') as var_file: json.dump(variables, var_file) - #Write the executable, 'config', to file + # Write the executable, 'config', to file with os.fdopen(os.open(fn, os.O_CREAT | os.O_WRONLY, 0o600), 'w') as f: f.write(c.get('config', '').encode('utf-8')) |