Skip to content

Commit 912329a

Browse files
committed
fix lint
1 parent 70f9c97 commit 912329a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/azure-cli/azure/cli/command_modules/acs/agentpool_decorator.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
DecoratorEarlyExitException,
3333
DecoratorMode,
3434
)
35-
from azure.cli.command_modules.acs._helpers import get_snapshot_by_snapshot_id, safe_list_get, process_dns_overrides, build_etag_kwargs
35+
from azure.cli.command_modules.acs._helpers import (
36+
get_snapshot_by_snapshot_id, safe_list_get, process_dns_overrides, build_etag_kwargs
37+
)
3638
from azure.cli.command_modules.acs._validators import extract_comma_separated_string
3739
from azure.cli.command_modules.acs.base_decorator import BaseAKSContext, BaseAKSModels, BaseAKSParamDict
3840
from azure.cli.core import AzCommandsLoader
@@ -1249,7 +1251,8 @@ def get_vm_set_type(self) -> str:
12491251
if self.agentpool and self.agentpool.type is not None:
12501252
vm_set_type = self.agentpool.type
12511253
else:
1252-
if self.agentpool and self.agentpool.properties and self.agentpool.properties.type_properties_type is not None:
1254+
if (self.agentpool and self.agentpool.properties and
1255+
self.agentpool.properties.type_properties_type is not None):
12531256
vm_set_type = self.agentpool.properties.type_properties_type
12541257

12551258
# normalize

src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4555,10 +4555,7 @@ def _get_cluster_autoscaler_profile(self, read_only: bool = False) -> Union[Dict
45554555
if cluster_autoscaler_profile and self.mc and self.mc.auto_scaler_profile:
45564556
# shallow copy should be enough for string-to-string dictionary
45574557
copy_of_raw_dict = dict(self.mc.auto_scaler_profile)
4558-
new_options_dict = {
4559-
key: value
4560-
for key, value in cluster_autoscaler_profile.items()
4561-
}
4558+
new_options_dict = dict(cluster_autoscaler_profile.items())
45624559
copy_of_raw_dict.update(new_options_dict)
45634560
cluster_autoscaler_profile = copy_of_raw_dict
45644561

0 commit comments

Comments
 (0)