Merge "Fix Horizon crash on multiple unprovisioned hosts"

This commit is contained in:
Zuul 2024-03-13 13:43:51 +00:00 committed by Gerrit Code Review
commit 49a8a7a913
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2013-2021 Wind River Systems, Inc.
# Copyright (c) 2013-2024 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
@ -116,7 +116,7 @@ class HostsTab(tabs.TableTab):
h.allow_insvc_patching = ph.allow_insvc_patching
# Sort hosts by hostname
hosts.sort(key=lambda f: (f.hostname))
hosts.sort(key=lambda f: f.hostname if f.hostname else '')
return hosts
def get_hostscontroller_data(self):