From f565bf2d3af6cd8f5a43a1f77c713f24ec340e8c Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Thu, 17 Jul 2014 14:50:29 +1000 Subject: [PATCH] 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 --- stack.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stack.sh b/stack.sh index 6d816919e9..94b90d18c0 100755 --- a/stack.sh +++ b/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