Package comodit_client :: Package api :: Module host :: Class Task

Class Task


Represents a task of a host's particular change.

Instance Methods
 
show(self, indent=0)
Prints tasks's information to standard output in a user-friendly way.

Inherited from util.json_wrapper.JsonWrapper: __init__, dump_json, get_json, get_real_json, load_json, print_json, set_json

Inherited from object: __long__, __native__, __nonzero__, __unicode__, next

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
int order_num
The order number of this task in the change.
string description
The description of this task.
string status
The task's status.
string error
If task's status is ERROR, a description of the error.

Inherited from object: __class__

Method Details

show(self, indent=0)

 

Prints tasks's information to standard output in a user-friendly way.

Parameters:
  • indent (int) - The number of spaces to put in front of each displayed line.

Property Details

order_num

The order number of this task in the change.

Get Method:
unreachable.order_num(self) - The order number of this task in the change.
Type:
int

description

The description of this task.

Get Method:
unreachable.description(self) - The description of this task.
Type:
string

status

The task's status. Possible values are OK, PENDING or ERROR.

Get Method:
unreachable.status(self) - The task's status.
Type:
string

error

If task's status is ERROR, a description of the error.

Get Method:
unreachable.error(self) - If task's status is ERROR, a description of the error.
Type:
string