Skip to content

Commit

Permalink
fix NameError
Browse files Browse the repository at this point in the history
  • Loading branch information
trehn committed May 28, 2018
1 parent 6fe21c0 commit 4d96006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bundlewrap/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self, node, interactive=False, ignore=False):
self.interactive = interactive

def __enter__(self):
if self.node.os not in OS_FAMILY_UNIX:
if self.node.os not in self.node.OS_FAMILY_UNIX:
# no locking required/possible
return self
with tempfile() as local_path:
Expand Down Expand Up @@ -104,7 +104,7 @@ def __enter__(self):
return self

def __exit__(self, type, value, traceback):
if self.node.os not in OS_FAMILY_UNIX:
if self.node.os not in self.node.OS_FAMILY_UNIX:
# no locking required/possible
return
with io.job(_("{node} removing hard lock").format(node=bold(self.node.name))):
Expand Down

0 comments on commit 4d96006

Please sign in to comment.