code: def _get_cpu(self):
          '''
          Get available CPU information.
          '''
          # CPU data in grains is OK-ish, but lscpu is still better in this case
          out = __salt__['cmd.run_all']("lscpu")
          salt.utils.fsutils._verify_run(out)
          data = dict()
          for descr, value in [elm.split(":", 1) for elm in out['stdout'].split(os.linesep)]:
              data[descr.strip()] = value.strip()
  
          return datf _get_cpu(self):
          '''
          Get available CPU information.
          '''
          # CPU data in grains is OK-ish, but lscpu is still better in this case
          out = __salt__['cmd.run_all']("lscpu")
          salt.utils.fsutils._verify_run(out)
          data = dict()
          for descr, value in [elm.split(":", 1) for elm in out['stdout'].split(os.linesep)]:
              data[descr.strip()] = value.strip()
  
          return data
docs: Get available CPU information.