We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c11dc7d + eac0698 commit db16712Copy full SHA for db16712
ocp_resources/virtual_machine.py
@@ -148,4 +148,14 @@ def ready(self):
148
Returns:
149
True if Running else None
150
"""
151
- return self.instance.status["ready"] if self.instance.status else None
+ return self.instance.get("status", {}).get("ready")
152
+
153
+ @property
154
+ def printable_status(self):
155
+ """
156
+ Get VM printableStatus
157
158
+ Returns:
159
+ VM printableStatus if VM.status.printableStatus else None
160
161
+ return self.instance.get("status", {}).get("printableStatus")
0 commit comments