Skip to content

Commit 1e8b967

Browse files
authored
Merge pull request Azure#34 from ninpan-ms/ninpan/lint
lint check
2 parents 825e42b + c8d0bfd commit 1e8b967

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/spring/azext_spring/migration/converter/app_converter.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ def _get_service_bind(self, app):
7272
if addon is None:
7373
return None
7474

75-
if (addon.get('applicationConfigurationService') is not None and addon['applicationConfigurationService'].get('resourceId') is not None) \
76-
or (addon.get('configServer') is not None and addon['configServer'].get('resourceId') is not None):
75+
if (
76+
(addon.get('applicationConfigurationService') is not None and addon['applicationConfigurationService'].get('resourceId') is not None)
77+
or (addon.get('configServer') is not None and addon['configServer'].get('resourceId') is not None)
78+
):
7779
service_bind.append({
7880
"name": "bind-config",
7981
"serviceId": f"resourceId('Microsoft.App/managedEnvironments/javaComponents', '{envName}', 'config')"

src/spring/azext_spring/migration/converter/gateway_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def transform_data():
2828
"routes": routes,
2929
"gatewayName": "gateway",
3030
"configurations": configurations,
31-
"replicas": replicas,
31+
"replicas": replicas,
3232
}
3333
self.client = client
3434
self.resource_group = resource_group

0 commit comments

Comments
 (0)