znc-buildmod exists with code 0 when it is unable to find a file to build #671

Closed
opened 2026-10-05 04:37:33 +02:00 by adam · 1 comment
Owner
<greedo> REMOTE_MODULE command /home/znc/prefix/bin/znc-buildmod privmsg.cpp creates=privmsg.so #USE_SHELL
changed: [greedo] => {
    "changed": true,
    "cmd": "/home/znc/prefix/bin/znc-buildmod privmsg.cpp",
    "delta": "0:00:00.004797",
    "end": "2016-01-03 23:17:14.420313",
    "rc": 0,
    "start": "2016-01-03 23:17:14.415516",
    "stderr": "",
    "stdout": "[ !! ] Building \"privmsg\" for ZNC 1.6.2... File not found",
    "warnings": []
}

This should return non-zero on failure so things like ansible don't erroneously think that it failing to do something is a success.

``` <greedo> REMOTE_MODULE command /home/znc/prefix/bin/znc-buildmod privmsg.cpp creates=privmsg.so #USE_SHELL changed: [greedo] => { "changed": true, "cmd": "/home/znc/prefix/bin/znc-buildmod privmsg.cpp", "delta": "0:00:00.004797", "end": "2016-01-03 23:17:14.420313", "rc": 0, "start": "2016-01-03 23:17:14.415516", "stderr": "", "stdout": "[ !! ] Building \"privmsg\" for ZNC 1.6.2... File not found", "warnings": [] } ``` This should return non-zero on failure so things like ansible don't erroneously think that it failing to do something is a success. <!-- github-sync-id:124694125 -->
adam closed this issue 2026-10-05 04:37:33 +02:00
Author
Owner

I assume "exits". But I think I found where that error is printed. PR coming shortly to give it a nonzero exit code.

I assume "exits". But I think I found where that error is printed. PR coming shortly to give it a nonzero exit code. <!-- github-comment-id:168580167 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#671