summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChoi, Sy Jong <sy.jong.choi@intel.com>2016-06-21 15:58:20 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2016-07-27 13:52:57 +0100
commit06f9209a90d7c31c9a6a0076074ca909f89d3041 (patch)
tree512d7355725505a23515f74ffb731c1bbf8a52c7
parentd779f8dd2ab94288fdb83d502a6077fc50322741 (diff)
downloadspp-06f9209a90d7c31c9a6a0076074ca909f89d3041.zip
spp-06f9209a90d7c31c9a6a0076074ca909f89d3041.tar.gz
spp-06f9209a90d7c31c9a6a0076074ca909f89d3041.tar.xz
spp: split exiting spp from "bye sec" and "bye all"
Signed-off-by: Sy Jong Choi <sy.jong.choi@intel.com> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
-rwxr-xr-xexamples/multi_process/patch_panel/spp.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/multi_process/patch_panel/spp.py b/examples/multi_process/patch_panel/spp.py
index 687742c..b937b5a 100755
--- a/examples/multi_process/patch_panel/spp.py
+++ b/examples/multi_process/patch_panel/spp.py
@@ -365,10 +365,10 @@ class Shell(cmd.Cmd):
elif cmds[0] == 'all':
close_all_secondary()
command_primary('exit')
-
- print('Thank you for using Soft Patch Panel')
- self.close()
- return True
+ elif cmds[0] == '':
+ print('Thank you for using Soft Patch Panel')
+ self.close()
+ return True
def main(argv):
"""main"""