@decorators.memoize
def _detect_conf():
 if (__grains__['os_family'] == 'RedHat'):
  return '/boot/grub/grub.conf'
 return '/boot/grub/menu.lst'

@ decorators . memoize def _detect_conf ( ) : if ( __grains__ [ 'os_family' ] == 'RedHat' ) : return '/boot/grub/grub.conf' return '/boot/grub/menu.lst'
grub conf location differs depending on distro .