Add argparse for RHEL6

python2.6 doesn't have argparse, required by outfilter.py.  This
package is a dependency on cloud-init, so this problem is often masked
in many testing environments.

Change-Id: Ia564f1b8a7b540faa7bbdbd1a1a290c591901682
This commit is contained in:
Ian Wienand 2014-07-17 14:50:29 +10:00
parent 5e93727a23
commit f565bf2d3a

View File

@ -530,6 +530,12 @@ function echo_nolog {
echo $@ >&3 echo $@ >&3
} }
if [[ is_fedora && $DISTRO =~ (rhel) ]]; then
# poor old python2.6 doesn't have argparse by default, which
# outfilter.py uses
is_package_installed python-argparse || install_package python-argparse
fi
# Set up logging for ``stack.sh`` # Set up logging for ``stack.sh``
# Set ``LOGFILE`` to turn on logging # Set ``LOGFILE`` to turn on logging
# Append '.xxxxxxxx' to the given name to maintain history # Append '.xxxxxxxx' to the given name to maintain history