| Summary: | exit code from install-num-migrate-to-rhsm should be 1, not 255 when bad input is supplied | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | John Sefler <jsefler> |
| Component: | subscription-manager | Assignee: | Alex Wood <awood> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Entitlement Bugs <entitlement-bugs> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 5.8 | CC: | jmolet, skallesh, spandey |
| Target Milestone: | rc | Keywords: | QA-Closed |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-01-09 17:45:39 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 771748 | ||
|
Description
John Sefler
2012-01-20 19:06:00 UTC
Here's another case where the exitCode should probably be 1. [root@jsefler-onprem-5server rhn]# ls clientCaps.d rhnsd up2date [root@jsefler-onprem-5server rhn]# install-num-migrate-to-rhsm Could not read installation number from /etc/sysconfig/rhn/install-num. Aborting. [root@jsefler-onprem-5server rhn]# echo $? 255 Committed e794c7fe2b0ba65d508f7b37f88d31b097f7801b Available in 0.99.5+ verified using following rpm subscription-manager-1.0.3-1.git.69.b87abd7.el5 subscription-manager-firstboot-1.0.3-1.git.69.b87abd7.el5 subscription-manager-migration-data-1.11.1.1-1.git.2.c7fbafe.el5 subscription-manager-migration-1.0.3-1.git.69.b87abd7.el5 subscription-manager-gui-1.0.3-1.git.69.b87abd7.el5 [root@dhcp193-122 ~]# install-num-migrate-to-rhsm Could not read installation number from /etc/sysconfig/rhn/install-num. Aborting. [root@dhcp193-122 ~]# echo $? 1 [root@dhcp193-122 ~]# install-num-migrate-to-rhsm -d -i 123 1>/tmp/stdout 2>/tmp/syderr [root@dhcp193-122 ~]# echo $? 1 resolving defect as verified Batch change of verified bugs which must have missed making the errata. |