Skip to content

Commit c7e2df9

Browse files
mattboentoroMatthew Boentoro
andauthored
[RDBMS] az postgres flexible-server create: Extend EOL to PG 11 and 12 (#31693)
Co-authored-by: Matthew Boentoro <[email protected]>
1 parent bbefc97 commit c7e2df9

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -514,14 +514,10 @@ def _pg_version_validator(version, versions):
514514
if version:
515515
if version not in versions:
516516
raise CLIError('Incorrect value for --version. Allowed values : {}'.format(sorted(versions)))
517-
if version == '11':
518-
raise CLIError("Support for PostgreSQL 11 has officially ended. "
517+
if version in ('11', '12'):
518+
logger.warning("Support for PostgreSQL %s has officially ended. "
519519
"We recommend selecting PostgreSQL 14 or a later version for "
520-
"all future operations.")
521-
if version == '12':
522-
raise CLIError("Support for PostgreSQL 12 has officially ended. "
523-
"We recommend selecting PostgreSQL 14 or a later version for "
524-
"all future operations.")
520+
"all future operations.", str(version))
525521
if version == '13':
526522
logger.warning("PostgreSQL version 13 will reach end-of-life (EOL) soon. "
527523
"Upgrade to PostgreSQL 14 or later as soon as possible to "

0 commit comments

Comments
 (0)