Skip to content

Commit

Permalink
first use the provided domain
Browse files Browse the repository at this point in the history
  • Loading branch information
hjacobs committed Sep 8, 2015
1 parent 600b906 commit 7119e84
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions stups_cli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,15 @@ def is_valid_domain(domain):
return False


def configure(default_domain=None):
def configure(preselected_domain=None):
while True:
errors = None
autoconfigs = {}
urls = {}

existing_config = load_config('stups')
domain = existing_config.get('domain') or default_domain
# first use the provided domain
domain = preselected_domain or existing_config.get('domain')

while True:
domain = click.prompt('Please enter your STUPS domain (e.g. "stups.example.org")', default=domain)
Expand Down

0 comments on commit 7119e84

Please sign in to comment.