diff options
Diffstat (limited to 'targetcli')
-rw-r--r-- | targetcli/ui_backstore.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/targetcli/ui_backstore.py b/targetcli/ui_backstore.py index 0af29f0..02695ba 100644 --- a/targetcli/ui_backstore.py +++ b/targetcli/ui_backstore.py @@ -284,7 +284,7 @@ class UIBackstore(UINode): def summary(self): return ("Storage Objects: %d" % len(self._children), None) - def ui_command_delete(self, name): + def ui_command_delete(self, name, save=None): ''' Recursively deletes the storage object having the specified I{name}. If there are LUNs using this storage object, they will be deleted too. @@ -301,7 +301,8 @@ class UIBackstore(UINode): except ValueError: raise ExecutionError("No storage object named %s." % name) - child.rtsnode.delete() + save = self.ui_eval_param(save, 'bool', False) + child.rtsnode.delete(save=save) self.remove_child(child) self.shell.log.info("Deleted storage object %s." % name) |