diff --git a/dbclient/SecretsClient.py b/dbclient/SecretsClient.py index 41e40ae..ce38a71 100644 --- a/dbclient/SecretsClient.py +++ b/dbclient/SecretsClient.py @@ -171,7 +171,7 @@ def import_all_secrets(self, log_dir='secret_scopes/', secret_scopes: list = [], else: logging.info("Skipping ACL Updates for {}".format(scope_name)) # loop through the scope and create the k/v pairs - with open(file_path, 'r', encoding="utf-8") as fp: + with open(file_path, 'r', encoding="utf-8") as fp: for s in fp: s_dict = json.loads(s) k = s_dict.get('name') diff --git a/dbclient/parser.py b/dbclient/parser.py index 811b0a4..e8ece4f 100644 --- a/dbclient/parser.py +++ b/dbclient/parser.py @@ -442,8 +442,8 @@ def build_client_config(profile, url, token, args): 'skip_failed': args.skip_failed, 'debug': args.debug, 'file_format': str(args.notebook_format), - 'timeout':args.timeout, - 'skip_missing_users':args.skip_missing_users + 'timeout':args.timeout if 'timeout' in args else 86400, + 'skip_missing_users':args.skip_missing_users if 'skip_missing_users' in args else True } # this option only exists during imports so we check for existence if 'overwrite_notebooks' in args: