Skip to content

Commit dad1868

Browse files
fix client warnings in logs for custom resources (#6866)
1 parent bad9574 commit dad1868

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

localstack/utils/cloudformation/template_deployer.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def get_resource_name(resource):
153153
return name
154154

155155

156-
def get_client(resource, func_config):
156+
def get_client(resource: dict, func_config: dict):
157157
resource_type = get_resource_type(resource)
158158
service = get_service_name(resource)
159159
resource_config = get_deployment_config(resource_type)
@@ -892,8 +892,7 @@ def execute_resource_action(resource_id: str, stack, action_name: str):
892892
results.append(result)
893893
executed = True
894894

895-
client = get_client(resource, func)
896-
if client and not executed:
895+
if not executed and get_client(resource, func):
897896
result = configure_resource_via_sdk(
898897
stack,
899898
resource_id,

0 commit comments

Comments
 (0)