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