added message to create accounts if none exist
This commit is contained in:
@@ -15,6 +15,7 @@ from kmip.pie import client
|
||||
|
||||
os_detected = platform.system()
|
||||
script_directory = os.path.dirname(os.path.realpath(__file__))
|
||||
script_name = os.path.basename(__file__)
|
||||
secrets_config_file = os.path.join(script_directory, "secrets.config")
|
||||
pykmip_client_config_file = os.path.join(script_directory, "conf", "client.conf")
|
||||
log_file = os.path.join(script_directory, "log.log")
|
||||
@@ -423,6 +424,9 @@ if __name__ == "__main__":
|
||||
print("This value must be one of the following characters: e, n, d, q.")
|
||||
|
||||
#json.loads((subprocess.check_output(['bw.exe','status'])).decode())['status']
|
||||
if not does_file_exist(secrets_config_file):
|
||||
print("No configuration file found. Please run {} -c to configure your accounts.".format(script_name))
|
||||
sys.exit(-1)
|
||||
accounts = read_config_file(secrets_config_file)
|
||||
emails = list(accounts)
|
||||
for email in emails:
|
||||
|
||||
Reference in New Issue
Block a user