Correct os assignment in _to_node()
@@ -309,10 +309,7 @@ class KubernetesContainerDriver(KubernetesDriverMixin, ContainerDriver):
extra=extra_size,
)
extra = {"memory": memory, "cpu": cpu}
- labels = data["metadata"]["labels"]
- os = labels.get("beta.kubernetes.io/os") or labels.get("kubernetes.io/os")
- if os:
- extra["os"] = os
+ extra["os"] = data["status"]["nodeInfo"]["operatingSystem"]
# TODO: Find state
state = NodeState.UNKNOWN
public_ips, private_ips = [], []
