Bug 1428862
| Summary: | spacecmd returns incorrect return codes in some instances | ||
|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | Tomáš Kašpárek <tkasparek> |
| Component: | Client | Assignee: | Tomáš Kašpárek <tkasparek> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Pavel Studeník <pstudeni> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 580 | CC: | pstudeni, satqe-list, tlestach |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | noarch | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | spacecmd-2.5.0-10-sat | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1202684 | Environment: | |
| Last Closed: | 2017-06-21 12:17:27 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1202582, 1202684 | ||
| Bug Blocks: | 1358815 | ||
|
Description
Tomáš Kašpárek
2017-03-03 14:23:15 UTC
>> spacecmd -s fakehostname.local -u spacewalk -p password "runsomecommand" ERROR: Failed to connect to https://fakehostname.local/rpc/api >> echo $? 1 >> spacecmd -s localhost -u spacewalk -p password "runsomecommand" INFO: Spacewalk Username: spacewalk ERROR: Invalid credentials >> echo $? 1 >> spacecmd -s localhost -u admin -p correct_pass "runsomecommand" INFO: Spacewalk Username: admin INFO: Connected to https://localhost/rpc/api as admin *** Unknown syntax: runsomecommand >> echo $? 0 I suppose that correct behaviour is that spacecmd returns non-zero value when fails. spacewalk.git(master): e21ab42fd175da7b32949acbbf360c335f3f3745 Verified with spacecmd-2.5.0-11.el6sat.noarch |