Skip to content

Commit

Permalink
fixup: reverted to make linter pass
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneo committed Aug 8, 2024
1 parent 22d34a5 commit 2d76f7c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions framework/helpers/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,10 @@ def __init__(
self.initial_resources = initial_resources

def __enter__(self):
if super().__enter__():
self.update_resources(self.initial_resources)
return self
if not super().__enter__():
return None
self.update_resources(self.initial_resources)
return self

def stop_on_resource_request(self, resource_type: str, resource_name: str):
stub = xdsconfig_pb2_grpc.XdsConfigControlServiceStub(self.channel())
Expand Down

0 comments on commit 2d76f7c

Please sign in to comment.