Skip to content

Commit 29e4ece

Browse files
author
German Robayo Paz
committed
fix linting
1 parent 5d05d45 commit 29e4ece

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/aks-preview/azext_aks_preview/managed_cluster_decorator.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2714,16 +2714,18 @@ def _handle_istio_cni_asm(self, new_profile: ServiceMeshProfile) -> Tuple[Servic
27142714
# Ensure istio profile exists
27152715
if new_profile.istio is None:
27162716
new_profile.istio = self.models.IstioServiceMesh() # pylint: disable=no-member
2717-
2717+
27182718
# Ensure components exist
27192719
if new_profile.istio.components is None:
27202720
new_profile.istio.components = self.models.IstioComponents() # pylint: disable=no-member
27212721

27222722
if enable_istio_cni:
2723-
new_profile.istio.components.proxy_redirection_mechanism = CONST_AZURE_SERVICE_MESH_PROXY_REDIRECTION_CNI_CHAINING
2723+
new_profile.istio.components.proxy_redirection_mechanism = \
2724+
CONST_AZURE_SERVICE_MESH_PROXY_REDIRECTION_CNI_CHAINING
27242725
updated = True
27252726
elif disable_istio_cni:
2726-
new_profile.istio.components.proxy_redirection_mechanism = CONST_AZURE_SERVICE_MESH_PROXY_REDIRECTION_INIT_CONTAINERS
2727+
new_profile.istio.components.proxy_redirection_mechanism = \
2728+
CONST_AZURE_SERVICE_MESH_PROXY_REDIRECTION_INIT_CONTAINERS
27272729
updated = True
27282730

27292731
return new_profile, updated

0 commit comments

Comments
 (0)