<s> import six <EOL> from st2actions . runners . pythonrunner import Action <EOL> class PacksTransformationAction ( Action ) : <EOL> def run ( self , packs_status ) : <EOL> """<STR_LIT>""" <EOL> packs = [ ] <EOL> for pack_name , status in six . iteritems ( packs_status ) : <EOL> if '<STR_LIT:success>' in status . lower ( ) : <EOL> packs . append ( pack_name ) <EOL> return packs </s>
