From 4d67efb86d6ee2d75ac1325d87a8b201f9ef5562 Mon Sep 17 00:00:00 2001 From: Peter Bandzi Date: Thu, 23 Jul 2015 09:32:56 +0200 Subject: Fix unbound variable issue during venv activation JIRA: OCTO-109 Change-Id: Iac5bc0f2135ffce6dee7003ddbf6f174247702b3 Signed-off-by: Peter Bandzi --- jjb/genesis/genesis-foreman.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'jjb/genesis') diff --git a/jjb/genesis/genesis-foreman.yml b/jjb/genesis/genesis-foreman.yml index c02fa1c3b..ae359c9cf 100644 --- a/jjb/genesis/genesis-foreman.yml +++ b/jjb/genesis/genesis-foreman.yml @@ -329,9 +329,13 @@ # create venv sudo $WORKSPACE/releng/utils/lab-reconfiguration/create_venv.sh + # disable nounset because 'activate' script contains unbound variable(s) + set +o nounset # enter venv source $WORKSPACE/releng/utils/lab-reconfiguration/venv/bin/activate - sudo python $WORKSPACE/releng/utils/lab-reconfiguration/reconfigUcsNet.py $ucs_host -u $ucs_user -p $ucs_password -f $WORKSPACE/releng/utils/lab-reconfiguration/foreman.yaml + # set nounset back again + set -o nounset + sudo python $WORKSPACE/releng/utils/lab-reconfiguration/reconfigUcsNet.py -i $ucs_host -u $ucs_user -p $ucs_password -f $WORKSPACE/releng/utils/lab-reconfiguration/foreman.yaml echo echo "--------------------------------------------------------" -- cgit 1.2.3-korg