Blame SOURCES/0007-Fix-default-max_backup_files-in-ui_command_saveconfi.patch

eb47f5
From cac1f18c54c87839b4eaa812cd438dc4593c7975 Mon Sep 17 00:00:00 2001
eb47f5
From: tangwenji <tang.wenji@zte.com.cn>
eb47f5
Date: Thu, 15 Mar 2018 14:52:20 +0800
eb47f5
Subject: [PATCH] Fix default max_backup_files in ui_command_saveconfig
eb47f5
eb47f5
Signed-off-by: tangwenji <tang.wenji@zte.com.cn>
eb47f5
---
eb47f5
 targetcli/ui_root.py | 2 +-
eb47f5
 1 file changed, 1 insertion(+), 1 deletion(-)
eb47f5
eb47f5
diff --git a/targetcli/ui_root.py b/targetcli/ui_root.py
eb47f5
index a54845f..54d38e3 100644
eb47f5
--- a/targetcli/ui_root.py
eb47f5
+++ b/targetcli/ui_root.py
eb47f5
@@ -98,7 +98,7 @@ class UIRoot(UINode):
eb47f5
 
eb47f5
                     if backup_error == None:
eb47f5
                         # Kill excess backups
eb47f5
-                        max_backup_files = int(self.shell.prefs['max_backup_files'])
eb47f5
+                        max_backup_files = int(self.shell.default_prefs['max_backup_files'])
eb47f5
 
eb47f5
                         try:
eb47f5
                             with open(universal_prefs_file) as prefs:
eb47f5
-- 
eb47f5
1.8.3.1
eb47f5