Kiril Nesenko has uploaded a new change for review.

Change subject: Fix --ticket-number option.
......................................................................

Fix --ticket-number option.

https://bugzilla.redhat.com/977836
Signed-off-by: Kiril Nesenko <[email protected]>

Change-Id: Ia5425f88392f309df2b6278b927d78b957220a61
Signed-off-by: Kiril Nesenko <[email protected]>
---
M src/__main__.py
1 file changed, 13 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-log-collector 
refs/changes/88/18388/1

diff --git a/src/__main__.py b/src/__main__.py
index f6f26d3..19ba76b 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -866,6 +866,19 @@
                 report_file_ext
             )
         )
+
+        if self.conf["ticket_number"]:
+            self.conf["path"] = os.path.join(
+                tempfile.gettempdir(),
+                "sosreport-%s-%s-%s.tar.%s" % (
+                'LogCollector',
+                self.conf["ticket_number"],
+                time.strftime("%Y%m%d%H%M%S"),
+                report_file_ext
+                )
+            )
+
+
         config = {
             'report': os.path.splitext(self.conf['path'])[0],
             'compressed_report': self.conf['path'],


-- 
To view, visit http://gerrit.ovirt.org/18388
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia5425f88392f309df2b6278b927d78b957220a61
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-log-collector
Gerrit-Branch: master
Gerrit-Owner: Kiril Nesenko <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to