def _get_instance_list(mig, field='name', filter_list=['NONE']):
 return [x[field] for x in mig.list_managed_instances() if (x['currentAction'] in filter_list)]

def _get_instance_list ( mig , field = 'name' , filter_list = [ 'NONE' ] ) : return [ x [ field ] for x in mig . list_managed_instances ( ) if ( x [ 'currentAction' ] in filter_list ) ]
helper to grab field from instances response .