def _get_modules_conf():
 if ('systemd' in __grains__):
  return '/etc/modules-load.d/salt_managed.conf'
 return '/etc/modules'

def _get_modules_conf ( ) : if ( 'systemd' in __grains__ ) : return '/etc/modules-load.d/salt_managed.conf' return '/etc/modules'
return location of modules config file .