Skip to content

Commit 821f609

Browse files
authored
Sort the version of verdi config downgrade cmd (#6920)
1 parent 8487e21 commit 821f609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aiida/cmdline/commands/cmd_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def verdi_config_caching(disabled):
213213

214214

215215
@verdi_config.command('downgrade')
216-
@click.argument('version', type=click.Choice(list({str(m.down_revision) for m in MIGRATIONS})))
216+
@click.argument('version', type=click.Choice(sorted(list({str(m.down_revision) for m in MIGRATIONS}))))
217217
def verdi_config_downgrade(version):
218218
"""Print a configuration, downgraded to a specific version."""
219219
path = Path(get_config_path())

0 commit comments

Comments
 (0)