<s> import logging <EOL> try : <EOL> from nacl . auto import * <EOL> from nacl . state import default_registry <EOL> HAS_NACL = True <EOL> except ImportError : <EOL> HAS_NACL = False <EOL> __virtualname__ = '<STR_LIT>' <EOL> log = logging . getLogger ( __virtualname__ ) <EOL> def __virtual__ ( ) : <EOL> if HAS_NACL : <EOL> log . info ( "<STR_LIT>" ) <EOL> return __virtualname__ <EOL> return False <EOL> def render ( template , saltenv = '<STR_LIT>' , sls = '<STR_LIT>' , <EOL> tmplpath = None , rendered_sls = None , ** kwargs ) : <EOL> pillar = __pillar__ <EOL> grains = __grains__ <EOL> salt = __salt__ <EOL> exec ( template . read ( ) ) <EOL> return default_registry . salt_data ( ) </s>
