Revision 37482e7b lib/objects.py

b/lib/objects.py
589 589
  __slots__ = [
590 590
    "name",
591 591
    "path",
592
    "status",
592 593
    "api_version",
593 594
    "create_script",
594 595
    "export_script",
......
596 597
    "rename_script",
597 598
    ]
598 599

  
600
  def __nonzero__(self):
601
    return self.status == constants.OS_VALID_STATUS
602

  
603
  __bool__ = __nonzero__
599 604

  
600 605
class Node(TaggableObject):
601 606
  """Config object representing a node."""

Also available in: Unified diff