From 7afecba20835d569a4fc60b022e983567da281b5 Mon Sep 17 00:00:00 2001 From: Gui Martins Date: Fri, 23 Apr 2021 16:27:27 -0300 Subject: [PATCH] That should do it --- jiractl.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jiractl.py b/jiractl.py index fdfc4ec..e868cdd 100644 --- a/jiractl.py +++ b/jiractl.py @@ -40,7 +40,7 @@ def login(ctx, apikey, endpoint): request = requests.get(endpoint + '/rest/api/latest/myself', headers=headers) request.raise_for_status() current_user = request.json() - write_config_file(config['config_file_path'], {'apikey': apikey,'endpoint': endpoint, 'current_user': current_user['key']}) + write_config_file(config['config_file_path'], {'apikey': apikey,'endpoint': endpoint, 'current_user': current_user.get('name')}) print("Authentication configuration setup correctly!") diff --git a/setup.py b/setup.py index bbb2e8d..d3195cb 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='fancy-jira', - version='0.0.3', + version='0.0.4', author='Gui Martins', url='https://fancywhale.ca/', author_email='gmartins@fancywhale.ca',