fix api pass env
This commit is contained in:
parent
d9b27d416c
commit
2af43ed499
|
@ -69,7 +69,7 @@ class siac:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_password():
|
def get_password():
|
||||||
# Get a port or use default
|
# Get a port or use default
|
||||||
password = os.getenv("API_PASSWORD")
|
password = os.getenv("SIA_API_PASSWORD")
|
||||||
if not password:
|
if not password:
|
||||||
home = os.getenv("HOME")
|
home = os.getenv("HOME")
|
||||||
password_file = open(home+"/.sia/apipassword")
|
password_file = open(home+"/.sia/apipassword")
|
||||||
|
|
Reference in New Issue