[PATCH 09/37] make sure savefile ends with '\n'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Andy Grover <agrover@xxxxxxxxxx>
---
 targetcli/ui_root.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/targetcli/ui_root.py b/targetcli/ui_root.py
index 5d6c0a0..b765dd4 100644
--- a/targetcli/ui_root.py
+++ b/targetcli/ui_root.py
@@ -78,6 +78,7 @@ class UIRoot(UINode):
 
         with open("/savecfg.json", "w+") as f:
             f.write(json.dumps(RTSRoot().dump(), sort_keys=True, indent=2))
+            f.write("\n")
 
     def ui_command_restore(self):
         from rtslib.root import RTSRoot
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux