Bug 1303794
| Summary: | Import readNSState.py from RichM's repo | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Noriko Hosoi <nhosoi> |
| Component: | 389-ds-base | Assignee: | wibrown <wibrown> |
| Status: | CLOSED ERRATA | QA Contact: | Viktor Ashirov <vashirov> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 7.3 | CC: | nkinder, rmeggins |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 389-ds-base-1.3.5.7-1.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-03 20:39:22 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Noriko Hosoi
2016-02-02 00:39:55 UTC
Let me assign this bug to you, William. Since we are going to rebase the source code for RHEL-7.3, this new script is also included in the 389-ds-base-1.3.5 release. Could you please open a doc bug against "Configuration, Command, and File Reference" Guide and provide the description? Thanks! /usr/bin/readnsstate is a user runnable executable, but it's missing a man page.
$ man readnsstate
No manual entry for readnsstate
Also it would be useful to provide the usage info using -h|--help switches, not only by executing the binary.
$ readnsstate --help
Traceback (most recent call last):
File "/usr/bin/readnsstate", line 99, in <module>
main()
File "/usr/bin/readnsstate", line 86, in main
for line in open(sys.argv[1]):
IOError: [Errno 2] No such file or directory: '--help'
$ readnsstate -h
Traceback (most recent call last):
File "/usr/bin/readnsstate", line 99, in <module>
main()
File "/usr/bin/readnsstate", line 86, in main
for line in open(sys.argv[1]):
IOError: [Errno 2] No such file or directory: '-h'
Using it with non-existent file should provide more user-friendly message than python traceback.
(In reply to Viktor Ashirov from comment #3) > /usr/bin/readnsstate is a user runnable executable, but it's missing a man > page. > $ man readnsstate > No manual entry for readnsstate Fixed upstream. Regarding the help option, opened a separated ticket. Indeed, it is nice to have one. Let's revisit once the other 7.3 bugs are cleaned up... https://fedorahosted.org/389/ticket/48890 Build tested: 389-ds-base-1.3.5.8-1.el7 Man page is present, marking as 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. https://rhn.redhat.com/errata/RHSA-2016-2594.html |