diff options
| author | Andy Grover <agrover@redhat.com> | 2013-01-07 11:52:59 -0800 |
|---|---|---|
| committer | Andy Grover <agrover@redhat.com> | 2013-01-07 11:52:59 -0800 |
| commit | a8fbc0eb14e8e76185237c540d9249212654d6d7 (patch) | |
| tree | 92823d621bad560024fd5604e780e61561e0a43c /targetcli/ui_root.py | |
| parent | 20591936d377dce2b4d297c942dbcc98f159a70f (diff) | |
| download | targetcli-a8fbc0eb14e8e76185237c540d9249212654d6d7.tar.gz | |
Use new restore functionality to provide better restoreconfig errors
rtslib.root.restore() now returns a list of the specific errors that
occurred. Print this list.
Signed-off-by: Andy Grover <agrover@redhat.com>
Diffstat (limited to 'targetcli/ui_root.py')
| -rw-r--r-- | targetcli/ui_root.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/targetcli/ui_root.py b/targetcli/ui_root.py index e095286..15a7120 100644 --- a/targetcli/ui_root.py +++ b/targetcli/ui_root.py @@ -98,7 +98,9 @@ class UIRoot(UINode): return if errors: - self.shell.log.error("Configuration restored, %s recoverable errors" % errors) + self.shell.log.error("Configuration restored, %d recoverable errors:" % len(errors)) + for error in errors: + self.shell.log.error(error) else: self.shell.log.info("Configuration restored from %s" % savefile) |
