Skip to content

Commit

Permalink
configure Fullstop too
Browse files Browse the repository at this point in the history
  • Loading branch information
hjacobs committed Sep 14, 2015
1 parent 7b6bc98 commit f3c9e3a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions stups_cli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ def configure(preselected_domain=None):
act.error('ERROR')
errors = True

for component in ('pierone', 'even'):
for component in ('pierone', 'even', 'fullstop'):
url = 'https://{}.{}'.format(component, domain)
with Action('Checking {}..'.format(url)) as act:
try:
requests.get(url, timeout=5)
requests.get(url, timeout=5, allow_redirects=False)
except:
act.error('ERROR')
errors = True
Expand All @@ -93,6 +93,8 @@ def configure(preselected_domain=None):
store_config({'url': urls['pierone']}, 'pierone')
with Action('Writing config for Più..'):
store_config({'even_url': urls['even']}, 'piu')
with Action('Writing config for Fullstop..'):
store_config({'url': urls['fullstop']}, 'fullstop')
with Action('Writing config for Zign..'):
store_config({'url': autoconfigs.get('zign', {}).get('token_service_url')}, 'zign')

Expand Down

0 comments on commit f3c9e3a

Please sign in to comment.