Fix missing home message
This commit is contained in:
parent
2f40ce5d24
commit
dae27b4a72
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user