#NEWLINE# def run( self , **kwargs ) : #NEWLINE# #INDENT# action = kwargs [ 'action' ] #NEWLINE# del kwargs [ 'action' ] #NEWLINE# module_path = kwargs [ 'module_path' ] #NEWLINE# del kwargs [ 'module_path' ] #NEWLINE# if ( action == 'run_instances' ) : #NEWLINE# #INDENT# kwargs [ 'user_data' ] = self . st2_user_data ( ) #NEWLINE# #UNINDENT# if ( action == 'create_tags' ) : #NEWLINE# #INDENT# kwargs [ 'tags' ] = self . split_tags ( kwargs [ 'tags' ] ) #NEWLINE# #UNINDENT# if ( 'cls' in kwargs . keys ( ) ) : #NEWLINE# #INDENT# cls = kwargs [ 'cls' ] #NEWLINE# del kwargs [ 'cls' ] #NEWLINE# return self . do_method ( module_path , cls , action , ** action ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . do_function ( module_path , action , ** kwargs )