Nornir scrapli interactive skips task for all devices #144
Unanswered
senthilkumar1985
asked this question in
Q&A
Replies: 1 comment 1 reply
-
👋
in extras on hosts/groups/defaults
dunno, sounds like a nornir question. been years since I messed with it but afaik nornir will only mark the failed host as failed and carry on with the rest. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i have 2 interactive tasks in nornir scrapli. i have 2 issues.
def task1(nr)
cmds_check = [
("run bash", "bash-4.2$", False),
("sudo su", "bash-4.2$", False),
("more xxxxx.py | grep abcd", "bash-4.2$, False)
failed string = ["#abcd"]
check = nr.run(task=send_interfactive, name="abc", interact_events=cmds_check, failed_when_contains=failed_string)
def task2(nr)
cmds_exec = [
("sudo sed -i 's|abcd|#abcd|' xxxx.py", "bash-4.2$", False)]
change = nr.run(task=send_interactive, name ="xxx", interact_events=cmds_exec)
def main():
task1(nr)
task2(nr)
Beta Was this translation helpful? Give feedback.
All reactions