#NEWLINE# def make_shell_task( uids , task ) : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# 'id' : task . get ( 'id' ) , #NEWLINE# 'type' : consts . ORCHESTRATOR_TASK_TYPES . shell , #NEWLINE# 'uids' : uids , #NEWLINE# 'parameters' : { #NEWLINE# #INDENT# 'cmd' : task [ 'parameters' ] [ 'cmd' ] , #NEWLINE# 'timeout' : task [ 'parameters' ] [ 'timeout' ] , #NEWLINE# 'retries' : task [ 'parameters' ] . get ( 'retries' , settings . SHELL_TASK_RETRIES ) , #NEWLINE# 'interval' : task [ 'parameters' ] . get ( 'interval' , settings . SHELL_TASK_INTERVAL ) , #NEWLINE# 'cwd' : task [ 'parameters' ] . get ( 'cwd' , '/' ) , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# }