Previously, there was a conflict in the `oo-register-dns` command between the two `-h` options which were associated with both the `--help` and `--with-node-hostname` options. This caused the command to fail with getoptlong object errors. This bug fix updates the command, and the `--help` and `-?` options now show usage information while the `-h` options is only associated with the `--with- node-hostname` option. As a result, these errors no longer occur.
Description of problem:
oo-register-dns show erros with any option
Version-Release number of selected component (if applicable):
openshift-origin-broker-util-1.36.2.1-1.el6op.noarch
How reproducible:
100%
Steps to Reproduce:
1. run oo-register-dns with any option
#oo-register-dns --help
#oo-register-dns -h node1 -n 10.66.79.203 -d ose22-auto.com.cn
Actual results:
/opt/rh/ruby193/root/usr/share/ruby/getoptlong.rb:316:in `block (2 levels) in set_options': option redefined `-h' (ArgumentError)
from /opt/rh/ruby193/root/usr/share/ruby/getoptlong.rb:306:in `each'
from /opt/rh/ruby193/root/usr/share/ruby/getoptlong.rb:306:in `block in set_options'
from /opt/rh/ruby193/root/usr/share/ruby/getoptlong.rb:285:in `each'
from /opt/rh/ruby193/root/usr/share/ruby/getoptlong.rb:285:in `set_options'
from /opt/rh/ruby193/root/usr/share/ruby/getoptlong.rb:184:in `initialize'
from /usr/sbin/oo-register-dns:50:in `new'
from /usr/sbin/oo-register-dns:50:in `<main>'
Expected results:
Show the help doc.
Additional info:
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.
https://rhn.redhat.com/errata/RHSA-2015-2666.html
Description of problem: oo-register-dns show erros with any option Version-Release number of selected component (if applicable): openshift-origin-broker-util-1.36.2.1-1.el6op.noarch How reproducible: 100% Steps to Reproduce: 1. run oo-register-dns with any option #oo-register-dns --help #oo-register-dns -h node1 -n 10.66.79.203 -d ose22-auto.com.cn Actual results: /opt/rh/ruby193/root/usr/share/ruby/getoptlong.rb:316:in `block (2 levels) in set_options': option redefined `-h' (ArgumentError) from /opt/rh/ruby193/root/usr/share/ruby/getoptlong.rb:306:in `each' from /opt/rh/ruby193/root/usr/share/ruby/getoptlong.rb:306:in `block in set_options' from /opt/rh/ruby193/root/usr/share/ruby/getoptlong.rb:285:in `each' from /opt/rh/ruby193/root/usr/share/ruby/getoptlong.rb:285:in `set_options' from /opt/rh/ruby193/root/usr/share/ruby/getoptlong.rb:184:in `initialize' from /usr/sbin/oo-register-dns:50:in `new' from /usr/sbin/oo-register-dns:50:in `<main>' Expected results: Show the help doc. Additional info: