diff options
author | Szilard Cserey <szilard.cserey@ericsson.com> | 2015-09-14 11:49:04 +0200 |
---|---|---|
committer | Szilard Cserey <szilard.cserey@ericsson.com> | 2015-09-14 16:35:45 +0200 |
commit | d72aa3b7da9f9e2eb5bd0690be58365027a70f0a (patch) | |
tree | b72970a7a2c0ec40d2f1deabff4f05975df60c59 /fuel/deploy/common.py | |
parent | 282a53a0d531fb39bd39d5c6673c72f240feb9d7 (diff) |
FIX for Autodeployer
- Fuel installation - fix for finding fuelmenu
- ugo+rwx access rights to autodeploy.log file
- backward compatibility for argument parsing of ISO, DEA, DHA
Change-Id: Ib4ad5b0868a25b0357cfcd9d8f644bb3a0703b25
Signed-off-by: Szilard Cserey <szilard.cserey@ericsson.com>
Diffstat (limited to 'fuel/deploy/common.py')
-rw-r--r-- | fuel/deploy/common.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fuel/deploy/common.py b/fuel/deploy/common.py index 3472e89..ab2bf68 100644 --- a/fuel/deploy/common.py +++ b/fuel/deploy/common.py @@ -13,6 +13,7 @@ import os import logging import argparse import shutil +import stat import errno N = {'id': 0, 'status': 1, 'name': 2, 'cluster': 3, 'ip': 4, 'mac': 5, @@ -31,7 +32,7 @@ LOG.addHandler(out_handler) out_handler = logging.FileHandler('autodeploy.log', mode='w') out_handler.setFormatter(formatter) LOG.addHandler(out_handler) - +os.chmod('autodeploy.log', stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO) def exec_cmd(cmd, check=True): process = subprocess.Popen(cmd, |