diff options
| author | Vratislav Podzimek <vpodzime@redhat.com> | 2013-01-18 10:24:50 +0100 |
|---|---|---|
| committer | Vratislav Podzimek <vpodzime@redhat.com> | 2013-01-22 13:19:16 +0100 |
| commit | 1fc180619082bbe8488afd0a7d86c8f30ea6f2d9 (patch) | |
| tree | 03a2906f3f0756da46107933c8ac97f86a098179 | |
| parent | 84d1ca89ef27d7fbba7e8ff7da69771a6614f94f (diff) | |
Add 'nmcli dev list' output to data gathered after crash
| -rw-r--r-- | pyanaconda/exception.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pyanaconda/exception.py b/pyanaconda/exception.py index bc320f9df..291adbcfb 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 |
