#NEWLINE# @ operation #NEWLINE# def mock_operation( ctx , **kwargs ) : #NEWLINE# #INDENT# mockprop = get_prop ( 'mockprop' , ctx , kwargs ) #NEWLINE# with update_storage ( key ) as data : #NEWLINE# #INDENT# data [ 'mock_operation_invocation' ] = data . get ( 'mock_operation_invocation' , [ ] ) #NEWLINE# data [ 'mock_operation_invocation' ] . append ( { #NEWLINE# #INDENT# 'id' : ctx . instance . id , #NEWLINE# 'mockprop' : mockprop , #NEWLINE# 'properties' : { key : value for ( key , value ) in ctx . node . properties . items ( ) } , #NEWLINE# #UNINDENT# } )