Skip to content

Commit 91b8db3

Browse files
committed
Import error
1 parent 4045a96 commit 91b8db3

File tree

1 file changed

+2
-3
lines changed
  • src/azure-cli/azure/cli/command_modules/sql

1 file changed

+2
-3
lines changed

src/azure-cli/azure/cli/command_modules/sql/custom.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
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 -

0 commit comments

Comments
 (0)