From 49659746e2746d5cd930fc20fe4835e975be395c Mon Sep 17 00:00:00 2001 From: Tim Serong Date: Thu, 28 Nov 2019 16:25:21 +1100 Subject: [PATCH] mgr/orchestrator: set node labels to empty list if none specified f06366836ff tries to ' '.join(node.labels), which raises an exception if labels is None, so we need to default it to an empty list. Signed-off-by: Tim Serong --- src/pybind/mgr/orchestrator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pybind/mgr/orchestrator.py b/src/pybind/mgr/orchestrator.py index 7ddba059ac025..15a4175065582 100644 --- a/src/pybind/mgr/orchestrator.py +++ b/src/pybind/mgr/orchestrator.py @@ -1296,6 +1296,8 @@ class InventoryNode(object): # type: (str, inventory.Devices, List[str]) -> None if devices is None: devices = inventory.Devices([]) + if labels is None: + labels = [] assert isinstance(devices, inventory.Devices) self.name = name # unique within cluster. For example a hostname. -- 2.39.5