core: fix configd asList helper (#2687)

This commit is contained in:
Fabian Franz BSc 2018-09-04 18:51:10 +02:00 committed by Ad Schellevis
parent 2b323f6dcd
commit a7bc218801

View File

@ -78,6 +78,8 @@ class Helpers(object):
:return: []
"""
result = self.getNodeByTag(tag)
if result is None:
return []
if type(result) != list:
# wrap result
result = [result]