Skip to content

Commit c02bf4d

Browse files
author
Matthew Boentoro
committed
{RDBMS} az postgres flexible-server create: Sort the version number when displaying the error message
1 parent 29ed992 commit c02bf4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/azure-cli/azure/cli/command_modules/rdbms/validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ def _pg_storage_performance_tier_validator(performance_tier, sku_info, tier=None
482482
def _pg_version_validator(version, versions, is_create):
483483
if version:
484484
if version not in versions:
485-
raise CLIError('Incorrect value for --version. Allowed values : {}'.format(versions))
485+
raise CLIError('Incorrect value for --version. Allowed values : {}'.format(sorted(versions)))
486486
if version == '12':
487487
logger.warning("Support for PostgreSQL 12 has officially ended. As a result, "
488488
"the option to select version 12 will be removed in the near future. "

0 commit comments

Comments
 (0)