original_docstring: Verify that the ENV defined LNVM device exists
docstring: Verify that the ENV defined LNVM device exists
docstring_tokens: Verify that the ENV defined LNVM device exists
code: def exists():
      """Verify that the ENV defined LNVM device exists"""
  
      if env():
          cij.err("cij.nvme.exists: Invalid NVMe ENV.")
          return 1
  
      lnvm = cij.env_to_dict(PREFIX, EXPORTED + REQUIRED)
  
      cmd = ['[[ -b "%s" ]]' % lnvm["DEV_PATH"]]
      rcode, _, _ = cij.ssh.command(cmd, shell=True, echo=False)
      if rcode:
          return False
  
      return True
code_tokens: def exists ( ) : if env ( ) : cij . err ( "cij.nvme.exists: Invalid NVMe ENV." ) return 1 lnvm = cij . env_to_dict ( PREFIX , EXPORTED + REQUIRED ) cmd = [ '[[ -b "%s" ]]' % lnvm [ "DEV_PATH" ] ] rcode , _ , _ = cij . ssh . command ( cmd , shell = True , echo = False ) if rcode : return False return True
short_docstring: Verify that the ENV defined LNVM device exists
short_docstring_tokens: Verify that the ENV defined LNVM device exists
comment: """Verify that the ENV defined LNVM device exists"""