diff options
author | Peter Bandzi <pbandzi@cisco.com> | 2015-07-23 09:32:56 +0200 |
---|---|---|
committer | Peter Bandzi <pbandzi@cisco.com> | 2015-07-23 09:37:22 +0200 |
commit | 4d67efb86d6ee2d75ac1325d87a8b201f9ef5562 (patch) | |
tree | 3ed54a56462ae14527bf0387834589e7e32afc2e | |
parent | a4bfdcf24fa216283c6471d6826ad0e9bda1a171 (diff) |
Fix unbound variable issue during venv activation
JIRA: OCTO-109
Change-Id: Iac5bc0f2135ffce6dee7003ddbf6f174247702b3
Signed-off-by: Peter Bandzi <pbandzi@cisco.com>
-rw-r--r-- | jjb/genesis/genesis-foreman.yml | 6 |
1 files changed, 5 insertions, 1 deletions
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 "--------------------------------------------------------" |