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)
|
sys.exit(1)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open(HOME + "/.redfish.conf") as json_data:
|
with open(HOME + "/.redfish/inventory") as json_data:
|
||||||
config = json.load(json_data)
|
config = json.load(json_data)
|
||||||
json_data.close()
|
json_data.close()
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
|
@ -21,7 +21,7 @@ if HOME == '':
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open(HOME + "/.redfish.conf") as json_data:
|
with open(HOME + "/.redfish/inventory") as json_data:
|
||||||
config = json.load(json_data)
|
config = json.load(json_data)
|
||||||
json_data.close()
|
json_data.close()
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
|
@ -20,7 +20,7 @@ redfish-client ::
|
|||||||
-h --help Show this screen.
|
-h --help Show this screen.
|
||||||
--version Show version.
|
--version Show version.
|
||||||
-c --config FILE Configuration file
|
-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
|
--insecure Ignore SSL certificates
|
||||||
--debug LEVEL Run in debug mode, LEVEL from 1 to 3 increase verbosity
|
--debug LEVEL Run in debug mode, LEVEL from 1 to 3 increase verbosity
|
||||||
Security warning LEVEL > 1 could reveal password into the logs
|
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
|
If the file does not exist create an empty one ready to receive data
|
||||||
|
|
||||||
:param inventory_file: File name of the configuration file
|
:param inventory_file: File name of the configuration file
|
||||||
default: ~/.redfish.conf
|
default: ~/.redfish/inventory
|
||||||
:type config-file: str
|
:type config-file: str
|
||||||
:returns: Nothing
|
:returns: Nothing
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user