END banner reports result=ok even when run_cmd() fails #7
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
eric/10-wancarp#7
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Low · Location:
10-wancarp:429,448-450,493The return value of
run_cmd()is ignored. Ififconfig downor a route command fails, an error line is logged, but the END banner still saysresult=ok changed=yes. Anyone scanning END banners will miss the failure.Suggested fix: track a
$failedflag fromrun_cmd()results and reportresult=partial(or similar) in the END banner. Update the README's banner description to match.