#NEWLINE# def to_dict( self ) : #NEWLINE# #INDENT# workload = { #NEWLINE# #INDENT# 'runner' : self . runner , #NEWLINE# #UNINDENT# } #NEWLINE# for prop in ( 'sla' , 'args' , 'context' ) : #NEWLINE# #INDENT# value = getattr ( self , prop ) #NEWLINE# if value : #NEWLINE# #INDENT# workload [ prop ] = value #NEWLINE# #UNINDENT# #UNINDENT# return workload