Signed-off-by: Vratislav Podzimek <vpodzime(a)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
_______________________________________________
anaconda-patches mailing list
anaconda-patches(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches