Bug 850205
| Summary: | traceback when bad option is provided to wallaby | ||
|---|---|---|---|
| Product: | Red Hat Enterprise MRG | Reporter: | Lubos Trilety <ltrilety> |
| Component: | wallaby | Assignee: | Will Benton <willb> |
| Status: | CLOSED ERRATA | QA Contact: | Lubos Trilety <ltrilety> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 2.2 | CC: | esammons, iboverma, matt, willb |
| Target Milestone: | 2.3 | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | wallaby-0.16.2-1 | Doc Type: | Bug Fix |
| Doc Text: |
Cause: Previous versions of the wallaby shell failed to trap certain errors from the parameter handling library.
Consequence: Previous versions of the wallaby shell displayed unfriendly error messages to users if they were invoked with incorrect command-line arguments.
Fix: The wallaby shell now traps these errors.
Result: The error message displayed when wallaby is invoked with incorrect command-line arguments is now user-friendly.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-03-06 18:45:10 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: | |||
|
Description
Lubos Trilety
2012-08-21 13:49:30 UTC
There is a fix in the bz850205 branch, which will be merged into master at some point in the future. Tested with wallaby-0.16.1-2
--h and --p works fine, but --a and --u have still similar issue.
# wallaby --u
/usr/lib/ruby/1.8/optparse.rb:451:in `parse': missing argument: --u (OptionParser::MissingArgument)
from /usr/lib/ruby/1.8/optparse.rb:1266:in `parse_in_order'
from /usr/lib/ruby/1.8/optparse.rb:1254:in `catch'
from /usr/lib/ruby/1.8/optparse.rb:1254:in `parse_in_order'
from /usr/lib/ruby/1.8/optparse.rb:1248:in `order!'
from /usr/lib/ruby/1.8/optparse.rb:1339:in `permute!'
from /usr/lib/ruby/1.8/optparse.rb:1360:in `parse!'
from /usr/lib/ruby/site_ruby/1.8/mrg/grid/config/shell.rb:144:in `main'
from /usr/bin/wallaby:21
# wallaby --a
/usr/lib/ruby/1.8/optparse.rb:451:in `parse': missing argument: --a (OptionParser::MissingArgument)
from /usr/lib/ruby/1.8/optparse.rb:1266:in `parse_in_order'
from /usr/lib/ruby/1.8/optparse.rb:1254:in `catch'
from /usr/lib/ruby/1.8/optparse.rb:1254:in `parse_in_order'
from /usr/lib/ruby/1.8/optparse.rb:1248:in `order!'
from /usr/lib/ruby/1.8/optparse.rb:1339:in `permute!'
from /usr/lib/ruby/1.8/optparse.rb:1360:in `parse!'
from /usr/lib/ruby/site_ruby/1.8/mrg/grid/config/shell.rb:144:in `main'
from /usr/bin/wallaby:21
>>> assigned
Missing arguments are handled now as well. Tested with:
wallaby-utils-0.16.3-1
wallaby-0.16.3-1
Tested on:
RHEL6 x86_64,i386
RHEL5 x86_64,i386
all tested options works correctly --a, --u, --h, --p
>>> verified
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0564.html |