From 9d0dca05b118b17a1396df5f751bee470fe27b6a Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Wed, 13 Jan 2021 22:29:58 -0500 Subject: [PATCH] Adjusted logic on so-tcpreplay to handle init for standalone/eval nodes --- salt/common/tools/sbin/so-tcpreplay | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/salt/common/tools/sbin/so-tcpreplay b/salt/common/tools/sbin/so-tcpreplay index 8b81c32cf..e8e24a474 100755 --- a/salt/common/tools/sbin/so-tcpreplay +++ b/salt/common/tools/sbin/so-tcpreplay @@ -51,13 +51,12 @@ if ! docker ps | grep -q so-tcpreplay; then TRUSTED_CONTAINERS=("so-tcpreplay") mkdir -p /opt/so/log/tcpreplay update_docker_containers "tcpreplay" "" "" "/opt/so/log/tcpreplay/init.log" - elif is_sensor; then + fi + if is_sensor; then if ! is_manager; then echo "Attempting to start replay container. If this fails then you may need to run this command on the manager first." fi so-tcpreplay-start || fail "Unable to initialize tcpreplay" - else - echo "Unable to enable replay functionality on this node type." fi fi