Skip to content

Commit 3cb1135

Browse files
authored
fix duplication of automation object (#282)
1 parent c8cb2c3 commit 3cb1135

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

automation/script/module.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,6 +1610,7 @@ def _run(self, i):
16101610
ii['env'] = env
16111611
ii['state'] = state
16121612
ii['meta'] = meta
1613+
ii['automation'] = self
16131614
# may need to detect versions in multiple paths
16141615
ii['run_script_input'] = run_script_input
16151616

@@ -1762,6 +1763,7 @@ def _run(self, i):
17621763
ii['env'] = env
17631764
ii['state'] = state
17641765
ii['meta'] = meta
1766+
ii['automation'] = self
17651767
# may need to detect versions in multiple paths
17661768
ii['run_script_input'] = run_script_input
17671769

@@ -5518,6 +5520,7 @@ def run_detect_version(customize_code, customize_common_input,
55185520
ii['env'] = env
55195521
ii['state'] = state
55205522
ii['meta'] = meta
5523+
ii['automation'] = customize_common_input['automation']
55215524

55225525
r = customize_code.detect_version(ii)
55235526
return r
@@ -5548,6 +5551,7 @@ def run_postprocess(customize_code, customize_common_input, recursion_spaces,
55485551
ii['env'] = env
55495552
ii['state'] = state
55505553
ii['meta'] = meta
5554+
ii['automation'] = customize_common_input['automation']
55515555

55525556
if run_script_input is not None:
55535557
ii['run_script_input'] = run_script_input

0 commit comments

Comments
 (0)