bundlewrap/hooks/skip_local_nodes.py
2022-11-26 12:24:27 +01:00

6 lines
269 B
Python

from bundlewrap.exceptions import SkipNode
def node_apply_start(repo, node, interactive, **kwargs):
if node.hostname == 'localhost':
if node.metadata.get('id') != repo.libs.local.id():
raise SkipNode('bw is not currently running on this node')