Skip to content

Commit d7d7c2a

Browse files
authored
Update input.py
1 parent 068a991 commit d7d7c2a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Interlace/lib/core/input.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,14 @@ def _replace_target_variables_in_commands(tasks, str_targets, ipset_targets):
130130
"https://", "").rstrip("/").replace("/", "-"),
131131
)
132132
yield yielded_task
133+
elif CLEANTARGET_VAR in command:
134+
for dirty_target in itertools.chain(str_targets, ipset_targets):
135+
yielded_task = task.clone()
136+
dirty_target = str(dirty_target)
137+
yielded_task.replace(CLEANTARGET_VAR,dirty_target.replace(
138+
"http://", "").replace("https://", "").rstrip("/").replace("/", "-"),
139+
)
140+
yield yielded_task
133141
else:
134142
yield task
135143

0 commit comments

Comments
 (0)