Exception: Knife::Proxmox::TaskError
- 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
-
#exitstatus ⇒ Object
readonly
Returns the value of attribute exitstatus.
-
#log ⇒ Object
readonly
Returns the value of attribute log.
-
#upid ⇒ Object
readonly
Returns the value of attribute upid.
Instance Method Summary collapse
-
#initialize(message, upid:, exitstatus:, log: nil) ⇒ TaskError
constructor
A new instance of TaskError.
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(, upid:, exitstatus:, log: nil) @upid = upid @exitstatus = exitstatus @log = log super() end |
Instance Attribute Details
#exitstatus ⇒ Object (readonly)
Returns the value of attribute exitstatus.
37 38 39 |
# File 'lib/knife-proxmox-ve/errors.rb', line 37 def exitstatus @exitstatus end |
#log ⇒ Object (readonly)
Returns the value of attribute log.
37 38 39 |
# File 'lib/knife-proxmox-ve/errors.rb', line 37 def log @log end |
#upid ⇒ Object (readonly)
Returns the value of attribute upid.
37 38 39 |
# File 'lib/knife-proxmox-ve/errors.rb', line 37 def upid @upid end |