if else not return
parent
604f25d794
commit
366e654a7c
20
app.py
20
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__':
|
||||
|
|
|
|||
Loading…
Reference in New Issue