diff options
author | Andy Grover <agrover@redhat.com> | 2014-11-13 11:41:24 -0800 |
---|---|---|
committer | Andy Grover <agrover@redhat.com> | 2014-11-13 11:41:24 -0800 |
commit | 1b23a7a8b48f176f749c075a793da1216c05d283 (patch) | |
tree | c4150c1609f22c7a0601fe9edaadb2d8a7939408 | |
parent | a0118567c3400bd63dafd8881e3e552ddea381e7 (diff) | |
download | rtslib-fb-1b23a7a8b48f176f749c075a793da1216c05d283.tar.gz |
Remove some help text from an exception message
It is better placed in the docstring.
Signed-off-by: Andy Grover <agrover@redhat.com>
-rw-r--r-- | rtslib/root.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rtslib/root.py b/rtslib/root.py index 0b50723..89c515a 100644 --- a/rtslib/root.py +++ b/rtslib/root.py @@ -158,12 +158,13 @@ class RTSRoot(CFSNode): ''' Takes a dict generated by dump() and reconfigures the target to match. Returns list of non-fatal errors that were encountered. + Will refuse to restore over an existing configuration unless clear_existing + is True. ''' if clear_existing: self.clear_existing(confirm=True) elif list(self.storage_objects) or list(self.targets): - raise RTSLibError("storageobjects or targets present, not restoring." + - " Set clear_existing=True?") + raise RTSLibError("storageobjects or targets present, not restoring") errors = [] |