Fix missing home message

This commit is contained in:
Uggla 2016-04-06 15:33:26 +02:00
parent 2f40ce5d24
commit dae27b4a72

View File

@ -29,10 +29,8 @@ if not os.path.exists(REDFISH_HOME):
os.mkdir(REDFISH_HOME) os.mkdir(REDFISH_HOME)
except IOError: except IOError:
print('ERROR: can\'t create {}.\n'.format(REDFISH_HOME)) print('ERROR: can\'t create {}.\n'.format(REDFISH_HOME))
print(' Try to create directory {}'.format( print(' Try to create directory {}'.format(REDFISH_HOME))
os.path.dirname(REDFISH_LOGFILE))) print(' using: mkdir -p {}'.format(REDFISH_HOME))
print(' using: mkdir -p {}'.format(
os.path.dirname(REDFISH_LOGFILE)))
sys.exit(1) sys.exit(1)
REDFISH_LOGFILE = os.path.join(REDFISH_HOME, "python-redfish.log") REDFISH_LOGFILE = os.path.join(REDFISH_HOME, "python-redfish.log")