def _get_excludes_option(**kwargs):
 disable_excludes = kwargs.get('disableexcludes', '')
 ret = []
 if disable_excludes:
  log.info("Disabling excludes for '%s'", disable_excludes)
  ret.append('--disableexcludes={0}'.format(disable_excludes))
 return ret

def _get_excludes_option ( ** kwargs ) : disable_excludes = kwargs . get ( 'disableexcludes' , '' ) ret = [ ] if disable_excludes : log . info ( "Disabling excludes for '%s'" , disable_excludes ) ret . append ( '--disableexcludes={0}' . format ( disable_excludes ) ) return ret
returns a list of --disableexcludes option to be used in the yum command .