Merge pull request #11728 from ansible/node_state_unhealthy_to_error

[mesh viz] change the term unhealthy to error
This commit is contained in:
Rebeccah Hunter 2022-02-11 16:02:43 -05:00 committed by GitHub
commit b26c1c16b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4790,7 +4790,7 @@ class InstanceNodeSerializer(BaseSerializer):
def get_node_state(self, obj):
if not obj.enabled:
return "disabled"
return "unhealthy" if obj.errors else "healthy"
return "error" if obj.errors else "healthy"
class InstanceSerializer(BaseSerializer):