File targetcli-fix-exit.patch of Package targetcli
Index: targetcli-2.1/targetcli/ui_node.py
===================================================================
--- targetcli-2.1.orig/targetcli/ui_node.py
+++ targetcli-2.1/targetcli/ui_node.py
@@ -128,7 +128,7 @@ class UINode(ConfigNode):
except EOFError:
input = None
self.shell.con.display('')
- if input == "exit":
+ if input.strip() == "exit":
return 'EXIT'
else:
self.shell.log.warning("Aborted exit, use 'saveconfig' to "