summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2020-09-23 14:47:13 -0400
committerGitHub <noreply@github.com>2020-09-23 14:47:13 -0400
commit57d7d1948e33d3aec2a5ef75f673e4f159d35341 (patch)
treeab3ab34d0ca4817648ba38401969825fe6d1250b
parent5fde152be6434a8329225cef2e0fefa9c9e213be (diff)
parentbb91e9c03bbb33fe21d904f634569dd0e48babf9 (diff)
Merge pull request #7160 from mjstapp/fix_topo_daemons_list
tests: fix bug in handling of daemons to start
-rw-r--r--tests/topotests/lib/topotest.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py
index f8843b0f19..d26e7c8881 100644
--- a/tests/topotests/lib/topotest.py
+++ b/tests/topotests/lib/topotest.py
@@ -1322,7 +1322,9 @@ class Router(Node):
# If `daemons` was specified then some upper API called us with
# specific daemons, otherwise just use our own configuration.
daemons_list = []
- if daemons is None:
+ if daemons != None:
+ daemons_list = daemons
+ else:
# Append all daemons configured.
for daemon in self.daemons:
if self.daemons[daemon] == 1: