Actions
Bug #6450
closedHammer ping command returns wrong return code
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1094826
Description of problem:
When running hammer ping command it is returning a non zero return code even if all services is ok
- hammer --version
hammer (0.1.0) * hammer_cli_foreman (0.1.0) * hammer_cli_katello (0.0.3)
How reproducible:
Aways
Steps to Reproduce:
1. Run hammer ping
2. Check if all services have the ok status
3. Run echo $? to read the return code
- hammer ping
candlepin:
Status: ok
Server Response: Duration: 24ms
candlepin_auth:
Status: ok
Server Response: Duration: 26ms
pulp:
Status: ok
Server Response: Duration: 16ms
pulp_auth:
Status: ok
Server Response: Duration: 26ms
elasticsearch:
Status: ok
Server Response: Duration: 28ms
katello_jobs:
Status: ok
Server Response: Duration: 39ms
- echo $?
1
- hammer ping
candlepin:
Status: ok
Server Response: Duration: 24ms
candlepin_auth:
Status: ok
Server Response: Duration: 26ms
pulp:
Status: ok
Server Response: Duration: 16ms
pulp_auth:
Status: ok
Server Response: Duration: 26ms
elasticsearch:
Status: ok
Server Response: Duration: 28ms
katello_jobs:
Status: ok
Server Response: Duration: 39ms
- echo $?
0
Additional info:
Updated by Anonymous over 10 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset katello|3e193e56e0bd6555c9895b62bb68d28cdf24c9b7.
Updated by Eric Helms over 10 years ago
- Translation missing: en.field_release set to 13
Actions