From 366e654a7c0130861b0f20b2843d03cef81e80d1 Mon Sep 17 00:00:00 2001 From: Nguyen Huu Thuong Date: Sat, 13 Jun 2020 08:55:17 +0200 Subject: [PATCH] if else not return --- app.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/app.py b/app.py index 39c5089..5a3f57c 100644 --- a/app.py +++ b/app.py @@ -113,21 +113,23 @@ def processes(): if not INPUT_FIRST_SSH: print("SSH-SCP-SSH no first_ssh input found") - return - print("+++++++++++++++++++Pipeline: RUNNING FIRST SSH+++++++++++++++++++") - connect(lambda c: ssh_process(c, INPUT_FIRST_SSH)) + else: + print("+++++++++++++++++++Pipeline: RUNNING FIRST SSH+++++++++++++++++++") + connect(lambda c: ssh_process(c, INPUT_FIRST_SSH)) if not INPUT_SCP: print("SSH-SCP-SSH no scp input found") - return - print("+++++++++++++++++++Pipeline: RUNNING SCP+++++++++++++++++++") - connect(lambda c: scp_process(c, INPUT_SCP)) + else: + print("+++++++++++++++++++Pipeline: RUNNING SCP+++++++++++++++++++") + connect(lambda c: scp_process(c, INPUT_SCP)) if not INPUT_LAST_SSH: print("SSH-SCP-SSH no last_ssh input found") - return - print("+++++++++++++++++++Pipeline: RUNNING LAST SSH+++++++++++++++++++") - connect(lambda c: ssh_process(c, INPUT_LAST_SSH)) + else: + print("+++++++++++++++++++Pipeline: RUNNING LAST SSH+++++++++++++++++++") + connect(lambda c: ssh_process(c, INPUT_LAST_SSH)) + + pass if __name__ == '__main__':