Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bebound committed Jul 16, 2024
1 parent 636e3b5 commit 9ee311f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/azure-cli/azure/cli/command_modules/search/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ def update_search_service(instance, partition_count=0, replica_count=0, public_n

replica_count = int(replica_count)
partition_count = int(partition_count)
if replica_count > 0:
if replica_count > 0: # pylint: disable=consider-using-min-builtin
instance.replica_count = replica_count
if partition_count > 0:
if partition_count > 0: # pylint: disable=consider-using-max-builtin
instance.partition_count = partition_count
if public_network_access:
if (public_network_access.lower() not in ["enabled", "disabled"]):
Expand Down

0 comments on commit 9ee311f

Please sign in to comment.