diff --git a/src/spring/azext_spring/migration/converter/app_converter.py b/src/spring/azext_spring/migration/converter/app_converter.py index e2b6337c0db..6f3337105b4 100644 --- a/src/spring/azext_spring/migration/converter/app_converter.py +++ b/src/spring/azext_spring/migration/converter/app_converter.py @@ -72,8 +72,10 @@ def _get_service_bind(self, app): if addon is None: return None - if (addon.get('applicationConfigurationService') is not None and addon['applicationConfigurationService'].get('resourceId') is not None) \ - or (addon.get('configServer') is not None and addon['configServer'].get('resourceId') is not None): + if ( + (addon.get('applicationConfigurationService') is not None and addon['applicationConfigurationService'].get('resourceId') is not None) + or (addon.get('configServer') is not None and addon['configServer'].get('resourceId') is not None) + ): service_bind.append({ "name": "bind-config", "serviceId": f"resourceId('Microsoft.App/managedEnvironments/javaComponents', '{envName}', 'config')" diff --git a/src/spring/azext_spring/migration/converter/gateway_converter.py b/src/spring/azext_spring/migration/converter/gateway_converter.py index f2c679557ef..9fea3a4f680 100644 --- a/src/spring/azext_spring/migration/converter/gateway_converter.py +++ b/src/spring/azext_spring/migration/converter/gateway_converter.py @@ -28,7 +28,7 @@ def transform_data(): "routes": routes, "gatewayName": "gateway", "configurations": configurations, - "replicas": replicas, + "replicas": replicas, } self.client = client self.resource_group = resource_group