def _yum():
 contextkey = 'yum_bin'
 if (contextkey not in __context__):
  if (('fedora' in __grains__['os'].lower()) and (int(__grains__['osrelease']) >= 22)):
   __context__[contextkey] = 'dnf'
  else:
   __context__[contextkey] = 'yum'
 return __context__[contextkey]

def _yum ( ) : contextkey = 'yum_bin' if ( contextkey not in __context__ ) : if ( ( 'fedora' in __grains__ [ 'os' ] . lower ( ) ) and ( int ( __grains__ [ 'osrelease' ] ) >= 22 ) ) : __context__ [ contextkey ] = 'dnf' else : __context__ [ contextkey ] = 'yum' return __context__ [ contextkey ]
return yum or dnf depending on version .