Skip to content

Commit df83143

Browse files
committed
Fix isset method on local context objects
1 parent 93c83ce commit df83143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyinfra/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def reset(self):
8585
self.context._container.module = None
8686

8787
def isset(self):
88-
return self.context._container.module is not None
88+
return self.get() is not None
8989

9090
@contextmanager
9191
def use(self, module):

0 commit comments

Comments
 (0)