Fix svars-write.py for Testing instances

This commit is contained in:
Jay Lee
2020-03-29 19:55:57 -04:00
parent 68745703f8
commit b677e8b4b2
2 changed files with 3 additions and 3 deletions

View File

@@ -6,8 +6,8 @@ cfg = json.load(sys.stdin)
cfg['client_secret'] = os.getenv('client_secret')
jid = os.getenv('jid')
cfg['refresh_token'] = os.getenv('refresh_%s' % jid)
vmtype = os.getenv('VMTYPE')
if vmtype == 'test':
name = os.getenv('TRAVIS_JOB_NAME')
if name.endswith('Testing'):
out_file = 'oauth2.txt'
else:
out_file = 'gam/oauth2.txt'