Skip to content

Commit 50f9ccc

Browse files
author
Sanjay Prabhakar
committed
[patch] fix unused var
1 parent 5d17159 commit 50f9ccc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mas/devops/ocp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def apply_resource(dynClient: DynamicClient, resource_yaml: str, namespace: str)
287287
try:
288288
resource = dynClient.resources.get(api_version=api_version, kind=kind)
289289
# Try to get the existing resource
290-
existing_resource = resource.get(name=name, namespace=namespace)
290+
resource.get(name=name, namespace=namespace)
291291
# If found, update it
292292
logger.debug(f"Updating existing {kind} '{name}' in namespace '{namespace}'")
293293
resource.patch(body=resource_dict, namespace=namespace, name=name)

0 commit comments

Comments
 (0)