<s> '''<STR_LIT>''' <EOL> from __future__ import absolute_import <EOL> import logging <EOL> try : <EOL> import salt . utils . etcd_util <EOL> HAS_LIBS = True <EOL> except ImportError : <EOL> HAS_LIBS = False <EOL> __virtualname__ = '<STR_LIT>' <EOL> log = logging . getLogger ( __name__ ) <EOL> __func_alias__ = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> } <EOL> def __virtual__ ( ) : <EOL> '''<STR_LIT>''' <EOL> if HAS_LIBS : <EOL> return __virtualname__ <EOL> return ( False , '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def get_ ( key , recurse = False , profile = None ) : <EOL> '''<STR_LIT>''' <EOL> client = __utils__ [ '<STR_LIT>' ] ( __opts__ , profile ) <EOL> if recurse : <EOL> return client . tree ( key ) <EOL> else : <EOL> return client . get ( key , recurse = recurse ) <EOL> def set_ ( key , value , profile = None , ttl = None , directory = False ) : <EOL> '''<STR_LIT>''' <EOL> client = __utils__ [ '<STR_LIT>' ] ( __opts__ , profile ) <EOL> return client . set ( key , value , ttl = ttl , directory = directory ) <EOL> def update ( fields , path = '<STR_LIT>' , profile = None ) : <EOL> '''<STR_LIT>''' <EOL> client = __utils__ [ '<STR_LIT>' ] ( __opts__ , profile ) <EOL> return client . update ( fields , path ) <EOL> def watch ( key , recurse = False , profile = None , timeout = <NUM_LIT:0> , index = None ) : <EOL> '''<STR_LIT>''' <EOL> client = __utils__ [ '<STR_LIT>' ] ( __opts__ , profile ) <EOL> return client . watch ( key , recurse = recurse , timeout = timeout , index = index ) <EOL> def ls_ ( path = '<STR_LIT:/>' , profile = None ) : <EOL> '''<STR_LIT>''' <EOL> client = __utils__ [ '<STR_LIT>' ] ( __opts__ , profile ) <EOL> return client . ls ( path ) <EOL> def rm_ ( key , recurse = False , profile = None ) : <EOL> '''<STR_LIT>''' <EOL> client = __utils__ [ '<STR_LIT>' ] ( __opts__ , profile ) <EOL> return client . rm ( key , recurse = recurse ) <EOL> def tree ( path = '<STR_LIT:/>' , profile = None ) : <EOL> '''<STR_LIT>''' <EOL> client = __utils__ [ '<STR_LIT>' ] ( __opts__ , profile ) <EOL> return client . tree ( path ) </s>
