Fix #40 by using the .redfish dir for inventory
change references to .redfish.conf into .redfish.inventory
This commit is contained in:
parent
65c8ac92e1
commit
0ae2d44bbc
@ -23,7 +23,7 @@ if HOME == '':
|
||||
sys.exit(1)
|
||||
|
||||
try:
|
||||
with open(HOME + "/.redfish.conf") as json_data:
|
||||
with open(HOME + "/.redfish/inventory") as json_data:
|
||||
config = json.load(json_data)
|
||||
json_data.close()
|
||||
except IOError as e:
|
||||
|
@ -21,7 +21,7 @@ if HOME == '':
|
||||
sys.exit(1)
|
||||
|
||||
try:
|
||||
with open(HOME + "/.redfish.conf") as json_data:
|
||||
with open(HOME + "/.redfish/inventory") as json_data:
|
||||
config = json.load(json_data)
|
||||
json_data.close()
|
||||
except IOError as e:
|
||||
|
@ -20,7 +20,7 @@ redfish-client ::
|
||||
-h --help Show this screen.
|
||||
--version Show version.
|
||||
-c --config FILE Configuration file
|
||||
-i --inventory FILE Configuration file [default: $HOME/.redfish.conf]
|
||||
-i --inventory FILE Configuration file [default: $HOME/.redfish/inventory]
|
||||
--insecure Ignore SSL certificates
|
||||
--debug LEVEL Run in debug mode, LEVEL from 1 to 3 increase verbosity
|
||||
Security warning LEVEL > 1 could reveal password into the logs
|
||||
@ -61,7 +61,7 @@ class InventoryFile(object):
|
||||
If the file does not exist create an empty one ready to receive data
|
||||
|
||||
:param inventory_file: File name of the configuration file
|
||||
default: ~/.redfish.conf
|
||||
default: ~/.redfish/inventory
|
||||
:type config-file: str
|
||||
:returns: Nothing
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user