devstack/inc
Sean Dague 49f5b9f5ec Make declared variables global
When variables use the 'declare' directive, it is by default a local
variable. While other variables have global scope.

For example:
   declare -A AN_ARRAY   # local in scope
   foo=1                 # global in scope

This causes errors to occur as some of the variables will be local only
and others will be global.

Update the code, as appropriate, so that variables using the 'declare'
directive also include the '-g' flag to have them also be global. Not
every instance of a declared variable has been updated.

Closes-Bug: #1669509
Co-Authored-By: John L. Villalovos <john.l.villalovos@intel.com>
Change-Id: I2180b68fe861ad19c6d4ec0df0f9f8a528347862
(cherry picked from commit afef8bf097)
2017-03-07 22:12:13 -08:00
..
ini-config add local.conf modifying functions 2016-07-01 12:50:18 +00:00
meta-config Warn instead of die on undefined config names 2016-12-12 09:55:32 -05:00
python Make declared variables global 2017-03-07 22:12:13 -08:00
rootwrap Fix path setup in add_sudo_secure_path 2015-12-01 13:43:01 +11:00