File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/azure-cli/azure/cli/command_modules/sql Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 6363 ServerKey ,
6464 ServerKeyType ,
6565 ServerNetworkAccessFlag ,
66- ServiceObjectiveName ,
6766 ServerTrustGroup ,
6867 ServicePrincipal ,
6968 ShortTermRetentionPolicyName ,
@@ -1796,10 +1795,10 @@ def db_update( # pylint: disable=too-many-locals, too-many-branches
17961795 # actually ignores the value of service objective name (!!). We are trying to protect the CLI
17971796 # user from this unintuitive behavior.
17981797 if (elastic_pool_id and service_objective and
1799- service_objective != ServiceObjectiveName . ELASTIC_POOL ):
1798+ service_objective != "ElasticPool" ):
18001799 raise CLIError ('If elastic pool is specified, service objective must be'
18011800 ' unspecified or equal \' {}\' .' .format (
1802- ServiceObjectiveName . ELASTIC_POOL ))
1801+ "ElasticPool" ))
18031802
18041803 # Update both elastic pool and sku. The service treats elastic pool and sku properties like PATCH,
18051804 # so if either of these properties is null then the service will keep the property unchanged -
You can’t perform that action at this time.
0 commit comments