Exception: Knife::Proxmox::TaskError

Inherits:
Error
  • Object
show all
Defined in:
lib/knife-proxmox-ve/errors.rb

Overview

A Proxmox async task (clone, start, …) finished with exitstatus != “OK”.

log is pre-scrubbed of secret-bearing keys, so it is safe to display.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, upid:, exitstatus:, log: nil) ⇒ TaskError

Returns a new instance of TaskError.



39
40
41
42
43
44
# File 'lib/knife-proxmox-ve/errors.rb', line 39

def initialize(message, upid:, exitstatus:, log: nil)
  @upid = upid
  @exitstatus = exitstatus
  @log = log
  super(message)
end

Instance Attribute Details

#exitstatusObject (readonly)

Returns the value of attribute exitstatus.



37
38
39
# File 'lib/knife-proxmox-ve/errors.rb', line 37

def exitstatus
  @exitstatus
end

#logObject (readonly)

Returns the value of attribute log.



37
38
39
# File 'lib/knife-proxmox-ve/errors.rb', line 37

def log
  @log
end

#upidObject (readonly)

Returns the value of attribute upid.



37
38
39
# File 'lib/knife-proxmox-ve/errors.rb', line 37

def upid
  @upid
end