code: def _grains():
      '''
      Get the grains from the proxied device
      '''
      (username, password) = _find_credentials()
      r = salt.modules.dracr.system_info(host=__pillar__['proxy']['host'],
                                         admin_username=username,
                                         admin_password=password)
  
      if r.get('retcode', 0) == 0:
          GRAINS_CACHE = r
      else:
          GRAINS_CACHE = {}
  
      GRAINS_CACHE.update(salt.modules.dracr.inventory(host=__pillar__['proxy']['host'],
                                                       admin_username=username,
                                                       admin_password=password))
  
      return GRAINS_CACHf _grains():
      '''
      Get the grains from the proxied device
      '''
      (username, password) = _find_credentials()
      r = salt.modules.dracr.system_info(host=__pillar__['proxy']['host'],
                                         admin_username=username,
                                         admin_password=password)
  
      if r.get('retcode', 0) == 0:
          GRAINS_CACHE = r
      else:
          GRAINS_CACHE = {}
  
      GRAINS_CACHE.update(salt.modules.dracr.inventory(host=__pillar__['proxy']['host'],
                                                       admin_username=username,
                                                       admin_password=password))
  
      return GRAINS_CACHE
docs: Get the grains from the proxied device