summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Martin <jxm@risingtidesystems.com>2011-07-18 23:40:50 +0200
committerJerome Martin <jxm@risingtidesystems.com>2011-07-18 23:48:23 +0200
commit1b06ee3754d3db376a5fb7fac45d2deabe1ca465 (patch)
tree9b3640827dac5d7f466b8327be78a53edb2a1e2e
parente83faf72fae59ea85272874753e06d8c6313d219 (diff)
downloadtargetcli-1b06ee3754d3db376a5fb7fac45d2deabe1ca465.tar.gz
Removed temporary debug hidden cmds _sh and _cfs.
* Were not even proper UI commands (just hardcoded test cases) * Now useless as that part has been debugged * Shell access can be dangerous using remote access.
-rw-r--r--rtsadmin/ui_node.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/rtsadmin/ui_node.py b/rtsadmin/ui_node.py
index dcbc035..f8640e5 100644
--- a/rtsadmin/ui_node.py
+++ b/rtsadmin/ui_node.py
@@ -81,14 +81,6 @@ class UINode(ConfigNode):
We overload this one in order to handle our own exceptions cleanly,
and not just configshell's ExecutionError.
'''
- if command == '_cfs':
- self.shell.log.info(self.cfs_cwd)
- return
- elif command == '_sh':
- self.shell.log.info("Opening a shell in %s." % self.cfs_cwd)
- self.shell.con.display("Type [CTRL-D] or exit to come back.")
- system("(cd %s; bash)" % self.cfs_cwd )
- return
try:
result = ConfigNode.execute_command(self, command,
pparams, kparams)