Skip to content

Commit 1e28cb6

Browse files
committed
Using correct sections
1 parent 82de95a commit 1e28cb6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arcsecond/api/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def _check_organisation_membership(cls, state, username, subdomain):
219219
if state.verbose:
220220
click.echo('Membership confirmed. Role is "{}", stored in {}.'
221221
.format(memberships[subdomain], config_file_path()))
222-
config_file_save_organisation_membership(subdomain, memberships[subdomain], state.debug)
222+
config_file_save_organisation_membership(subdomain, memberships[subdomain], state.config_section())
223223
else:
224224
if state.verbose:
225225
click.echo('Membership denied.')
@@ -233,7 +233,7 @@ def _get_and_save_api_key(cls, state, username, auth_token):
233233
return ArcsecondAPI._echo_error(state, error)
234234
if result:
235235
api_key = result['api_key']
236-
config_file_save_api_key(api_key, username, state.debug)
236+
config_file_save_api_key(api_key, username, state.config_section())
237237
if state.verbose:
238238
click.echo('Successful API key retrieval and storage in {}. Enjoy.'.format(config_file_path()))
239239
return result

0 commit comments

Comments
 (0)