File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
src/azure-cli/azure/cli/command_modules/rdbms Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -514,14 +514,10 @@ def _pg_version_validator(version, versions):
514
514
if version :
515
515
if version not in versions :
516
516
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. "
519
519
"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 ))
525
521
if version == '13' :
526
522
logger .warning ("PostgreSQL version 13 will reach end-of-life (EOL) soon. "
527
523
"Upgrade to PostgreSQL 14 or later as soon as possible to "
You can’t perform that action at this time.
0 commit comments