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
diff --git a/stack.sh b/stack.sh
index 6d81691..94b90d1 100755
--- a/stack.sh
+++ b/stack.sh
@@ -530,6 +530,12 @@
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