summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Dewender <github@JonnyJD.net>2013-11-02 03:51:07 +0100
committerJohannes Dewender <github@JonnyJD.net>2013-11-02 03:51:07 +0100
commit269577b836d0e7216071b2f50308ec08bae26844 (patch)
tree73bd5d74c0cf6e5321f12e3775059ab082a1d48d
parent6d587dd42e6067d9caa422a58459e2e70c543101 (diff)
downloadrtslib-fb-269577b836d0e7216071b2f50308ec08bae26844.tar.gz
targetctl: fix restore
There is no clear_existing argument. restore_from_file() always clears the config first. Signed-off-by: Johannes Dewender <github@JonnyJD.net>
-rwxr-xr-xscripts/targetctl3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/targetctl b/scripts/targetctl
index db8e0d2..bdf59f4 100755
--- a/scripts/targetctl
+++ b/scripts/targetctl
@@ -42,8 +42,7 @@ def save(to_file):
RTSRoot().save_to_file(save_file=to_file)
def restore(from_file):
- errors = RTSRoot().restore_from_file(restore_file=from_file,
- clear_existing=True)
+ errors = RTSRoot().restore_from_file(restore_file=from_file)
if errors:
print("Restore failed, %d errors:" % len(errors), file=err)