bundlewrap/hooks/test_apply_dummy_mode.py

9 lines
282 B
Python
Raw Permalink Normal View History

2023-04-09 10:24:03 +00:00
from os import environ
from bundlewrap.exceptions import SkipNode
2023-05-20 05:46:02 +00:00
2023-04-09 10:24:03 +00:00
def node_apply_start(repo, node, interactive=False, **kwargs):
if environ.get('BW_VAULT_DUMMY_MODE') or environ.get('BW_PASS_DUMMY_MODE'):
raise SkipNode('refusing apply because dummy mode is active')