Add the status field to the definition of the host to ensure an
apply_spec honours hosts that should be defined in maintenance
during a bootstrap based deployment.
Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
def from_json(cls, host_spec):
_cls = cls(host_spec['hostname'],
host_spec['addr'] if 'addr' in host_spec else None,
- host_spec['labels'] if 'labels' in host_spec else None)
+ host_spec['labels'] if 'labels' in host_spec else None,
+ host_spec['status'] if 'status' in host_spec else None)
return _cls
def __repr__(self):