[node-patches] Change in ovirt-node[master]: setup: Only add journalctl if available
fabiand at fedoraproject.org
fabiand at fedoraproject.org
Tue Dec 10 15:17:28 UTC 2013
Fabian Deutsch has uploaded a new change for review.
Change subject: setup: Only add journalctl if available
......................................................................
setup: Only add journalctl if available
Change-Id: I638581ff0e13e64053ea28b4bc4350518fa1b950
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1017029
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/setup/core/support_page.py
1 file changed, 11 insertions(+), 7 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/60/22260/1
diff --git a/src/ovirt/node/setup/core/support_page.py b/src/ovirt/node/setup/core/support_page.py
index d838cec..7eb732d 100644
--- a/src/ovirt/node/setup/core/support_page.py
+++ b/src/ovirt/node/setup/core/support_page.py
@@ -20,7 +20,7 @@
# also available at http://www.gnu.org/copyleft/gpl.html.
from ovirt.node import ui
from ovirt.node.plugins import NodePlugin
-from ovirt.node.utils import process
+from ovirt.node.utils import process, system
"""
A plugin for a support page
@@ -85,9 +85,13 @@
contents)
def __debugfiles_to_offer(self):
- return [("node", "/var/log/ovirt.log"),
- ("ui", "/tmp/ovirt.debug.log"),
- ("dmesg", "dmesg"),
- ("messages", "/var/log/messages"),
- ("journal", "journal (systemd)"),
- ("audit", "/var/log/audit/audit.log")]
+ items = [("node", "/var/log/ovirt.log"),
+ ("ui", "/tmp/ovirt.debug.log"),
+ ("dmesg", "dmesg"),
+ ("messages", "/var/log/messages"),
+ ("audit", "/var/log/audit/audit.log")]
+
+ if system.has_systemd():
+ items.append(("journal", "journal (systemd)"))
+
+ return items
--
To view, visit http://gerrit.ovirt.org/22260
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I638581ff0e13e64053ea28b4bc4350518fa1b950
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>
More information about the node-patches
mailing list