Skip to content

Commit

Permalink
Merge pull request #9 from zalando-stups/ztoken
Browse files Browse the repository at this point in the history
configure Zalando Token CLI
  • Loading branch information
hjacobs authored Dec 13, 2016
2 parents ec69339 + 2cb5cb0 commit 52714a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stups_cli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def configure(preselected_domain=None):
else:
info('The entered domain is not valid. Please try again.')

for component in ('mai', 'zign'):
for component in ('mai', 'zign', 'zalando-token-cli'):

with Action('Trying to autoconfigure {}..'.format(component)) as act:
try:
Expand Down Expand Up @@ -119,6 +119,9 @@ def configure(preselected_domain=None):
store_config({'url': urls['kio']}, 'kio')
with Action('Writing config for Zign..'):
store_config({'url': token_service_url, 'user': username}, 'zign')
if autoconfigs.get('zalando-token-cli'):
with Action('Writing config for Zalando Token CLI..'):
store_config(autoconfigs['zalando-token-cli'], 'zalando-token-cli')

info('Now running "mai create-all" to configure your AWS profile(s)..')
user_pattern = autoconfigs.get('mai', {}).get('saml_user_pattern')
Expand Down

0 comments on commit 52714a0

Please sign in to comment.