[PATCH 2/2] Add 'nmcli dev list' output to data gathered after crash
Vratislav Podzimek
vpodzime at redhat.com
Fri Jan 18 09:42:59 UTC 2013
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
pyanaconda/exception.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/pyanaconda/exception.py b/pyanaconda/exception.py
index bc320f9..291adbc 100644
--- a/pyanaconda/exception.py
+++ b/pyanaconda/exception.py
@@ -178,6 +178,8 @@ def initExceptionHandling(anaconda):
fileList=fileList)
conf.register_callback("lsblk_output", lsblk_callback, attchmnt_only=True)
+ conf.register_callback("nmcli_dev_list", nmcli_dev_list_callback,
+ attchmnt_only=True)
handler = AnacondaExceptionHandler(conf, anaconda.intf.meh_interface,
ReverseExceptionDump, anaconda.intf.tty_num)
@@ -190,6 +192,11 @@ def lsblk_callback():
return iutil.execWithCapture("lsblk", ["--perms", "--fs", "--bytes"])
+def nmcli_dev_list_callback():
+ """Callback to get info about network devices."""
+
+ return iutil.execWithCapture("nmcli", ["dev", "list"])
+
def test_exception_handling():
"""
Function that can be used for testing exception handling in anaconda. It
--
1.7.11.7
More information about the anaconda-patches
mailing list