X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=fuel%2Fdeploy%2Fcommon.py;h=ab2bf68cc41e31759c505bcba3e0ca09b4a57625;hb=543bf41c9bba0e217d0b6c1e94aea67a2528bb5e;hp=3472e8992e378d8282f4c8cf8541cced3309c7aa;hpb=49aacd62348d7edf91c5b9bbd40d31708610e1e5;p=genesis.git 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,