def _api_get_files(name, output, kwargs):
 value = kwargs.get('value')
 if value:
  return report(output, keyword='files', data=build_file_list(value))
 else:
  return report(output, _MSG_NO_VALUE)

def _api_get_files ( name , output , kwargs ) : value = kwargs . get ( 'value' ) if value : return report ( output , keyword = 'files' , data = build_file_list ( value ) ) else : return report ( output , _MSG_NO_VALUE )
api: accepts output .