Skip to content

Commit

Permalink
Fix bug in the setup of a profile through verdi setup/quicksetup (#…
Browse files Browse the repository at this point in the history
…2395)

When setting up a profile that already exists, `verdi` is supposed
prompt the user whether they want to reuse the information of the
existing profile or if they want to change it. However, instead of
asking to confirm, the command was prompting, causing the user to always
have to reenter the information.
  • Loading branch information
sphuber authored and giovannipizzi committed Jan 17, 2019
1 parent 487c112 commit de14357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiida/common/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def create_profile(config, profile_name='default'):
else:
print("{}: {}".format(key, value))
# If the user doesn't want to change it, we abandon
if not click.prompt('Would you like to change it?'):
if not click.confirm('Would you like to change it?'):
return profile

# Otherwise, we continue.
Expand Down

0 comments on commit de14357

Please sign in to comment.