def _get_branch_option(**kwargs):
 branch = kwargs.get('branch', '')
 ret = []
 if branch:
  log.info("Adding branch '%s'", branch)
  ret.append("--branch='{0}'".format(branch))
 return ret

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