Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 310880 Details for
Bug 386691
Need unattended way to run sosreport
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Properly sets default empty values for --name and --ticket-number.
sosreport.patch (text/plain), 2.74 KB, created by
Robert Jackson
on 2008-07-03 05:14:32 UTC
(
hide
)
Description:
Properly sets default empty values for --name and --ticket-number.
Filename:
MIME Type:
Creator:
Robert Jackson
Created:
2008-07-03 05:14:32 UTC
Size:
2.74 KB
patch
obsolete
>--- /usr/sbin/sosreport 2008-03-28 10:28:49.000000000 -0400 >+++ /usr/sbin/sosreport2 2008-07-03 00:46:25.000000000 -0400 >@@ -142,6 +142,12 @@ > __cmdParser__.add_option("--no-multithread", action="store_true", \ > dest="nomultithread", \ > help="disable multi-threaded gathering mode (slower)", default=False) >+__cmdParser__.add_option("--name", action="extend", \ >+ dest="name",type="string", \ >+ help="first initial and last name.") >+__cmdParser__.add_option("--ticket-number", action="extend", \ >+ dest="ticketnumber", type="string", \ >+ help="ticket number.") > > if sys.argv[0].endswith("sysreport"): > try: >@@ -538,9 +544,12 @@ > if not len(loadedplugins): > soslog.error(_("no valid plugins were enabled")) > sys.exit(1) >- >- try: >- raw_input(_("""This utility will collect some detailed information about the >+ >+ isUnattended = False >+ if len(__cmdLineOpts__.name) > 0 and len(__cmdLineOpts__.ticketnumber) > 0: isUnattended = True >+ if not isUnattended: >+ try: >+ raw_input(_("""This utility will collect some detailed information about the > hardware and setup of your Red Hat Enterprise Linux system. > The information is collected and an archive is packaged under > /tmp, which you can send to a support representative. >@@ -552,9 +561,9 @@ > > Press ENTER to continue, or CTRL-C to quit. > """)) >- except KeyboardInterrupt: >- print >- sys.exit(0) >+ except KeyboardInterrupt: >+ print >+ sys.exit(0) > > # Call the diagnose() method for each plugin > tmpcount = 0 >@@ -583,7 +592,10 @@ > print > try: > while True: >- yorno = raw_input( _("Are you sure you would like to continue (y/n) ? ") ) >+ if not isUnattended: >+ yorno = raw_input( _("Are you sure you would like to continue (y/n) ? ") ) >+ else: >+ yorno = _("Y") > if yorno == _("y") or yorno == _("Y"): > print > break >@@ -594,7 +606,7 @@ > print > sys.exit(0) > >- policy.preWork() >+ policy.preWork(__cmdLineOpts__.name, __cmdLineOpts__.ticketnumber) > > # Call the setup() method for each plugin > for plugname, plug in loadedplugins: >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 386691
:
310878
|
310879
|
310880
|
310881
|
315268