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.
1 parent 86d8420 commit 26ffe52Copy full SHA for 26ffe52
crossplane/pythonic/composite.py
@@ -450,7 +450,12 @@ def __getitem__(self, type):
450
return Condition(self, type)
451
452
def __bool__(self):
453
- return bool(self._types())
+ if self._response is not None:
454
+ if self._response.conditions:
455
+ return True
456
+ if self._observed.resource.status.conditions:
457
458
+ return False
459
460
def __len__(self):
461
return len(self._types())
0 commit comments