summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Grover <agrover@redhat.com>2014-11-13 11:41:24 -0800
committerAndy Grover <agrover@redhat.com>2014-11-13 11:41:24 -0800
commit1b23a7a8b48f176f749c075a793da1216c05d283 (patch)
treec4150c1609f22c7a0601fe9edaadb2d8a7939408
parenta0118567c3400bd63dafd8881e3e552ddea381e7 (diff)
downloadrtslib-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.py5
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 = []