Project

General

Profile

Actions

Bug #19262

closed

hammer ping returns exit code 0 when service is failing

Added by John Mitsch over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

[root@john ~]# hammer ping
candlepin:
Status: ok
Server Response: Duration: 56ms
candlepin_auth:
Status: ok
Server Response: Duration: 60ms
pulp:
Status: FAIL
Server Response:
foreman_tasks:
Status: ok
Server Response: Duration: 522ms

[root@john ~]# echo $?
0

Expected Results:
the exit code is something other than zero

Actions

Also available in: Atom PDF