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:
parent
5e93727a23
commit
f565bf2d3a
6
stack.sh
6
stack.sh
@ -530,6 +530,12 @@ function echo_nolog {
|
||||
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 ``LOGFILE`` to turn on logging
|
||||
# Append '.xxxxxxxx' to the given name to maintain history
|
||||
|
Loading…
Reference in New Issue
Block a user