From ea1cdd553ce43159ce800fe60e2d9f571a0cf7b7 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Mon, 30 Dec 2019 10:07:44 -0500 Subject: [PATCH] fix few parameters after restructuring of fileutils --- src/gam.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gam.py b/src/gam.py index 44c26dd2..327ea6a7 100755 --- a/src/gam.py +++ b/src/gam.py @@ -803,7 +803,7 @@ def _getServerTLSUsed(location): def _getSvcAcctData(): if not GM_Globals[GM_OAUTH2SERVICE_JSON_DATA]: - json_string = fileutils.read_file(GC_Values[GC_OAUTH2SERVICE_JSON], continueOnError=True, displayError=True) + json_string = fileutils.read_file(GC_Values[GC_OAUTH2SERVICE_JSON], continue_on_error=True, display_errors=True) if not json_string: printLine(MESSAGE_INSTRUCTIONS_OAUTH2SERVICE_JSON) controlflow.system_error_exit(6, None) @@ -7908,7 +7908,7 @@ def rotateServiceAccountKeys(): result = gapi.call(iam.projects().serviceAccounts().keys(), 'create', name=name, body=body) oauth2service_data = base64.b64decode(result['privateKeyData']).decode(UTF8) private_key_id = result.get('name').rsplit('/', 1)[-1] - fileutils.write_file(GC_Values[GC_OAUTH2SERVICE_JSON], oauth2service_data, continueOnError=False) + fileutils.write_file(GC_Values[GC_OAUTH2SERVICE_JSON], oauth2service_data, continue_on_error=False) print(' Wrote new private key {0} to {1}'.format(private_key_id, GC_Values[GC_OAUTH2SERVICE_JSON])) if delete_existing: for akey in keys.get('keys'):