def append_domain():
 grain = {}
 if salt.utils.is_proxy():
  return grain
 if ('append_domain' in __opts__):
  grain['append_domain'] = __opts__['append_domain']
 return grain

def append_domain ( ) : grain = { } if salt . utils . is_proxy ( ) : return grain if ( 'append_domain' in __opts__ ) : grain [ 'append_domain' ] = __opts__ [ 'append_domain' ] return grain
return append_domain if set .