From 4ab76ed9e1c277b68f3077cfee5c61375b78ef06 Mon Sep 17 00:00:00 2001
From: Jeffrey Zhang <zhang.lei.fly@gmail.com>
Date: Wed, 30 May 2018 16:00:58 +0800
Subject: [PATCH] Put upper limit on cmd2 in kolla-toolbox

This fixes an issue with cmd2 >= 0.9.0 requiring python3.

Change-Id: I5f88f0b0540785f8e7b7ab7c5252c6a51f314922
Closes-Bug: #1773938
---
 tools/setup_gate.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/setup_gate.sh b/tools/setup_gate.sh
index 8643416982..fdfc29ff20 100755
--- a/tools/setup_gate.sh
+++ b/tools/setup_gate.sh
@@ -83,7 +83,7 @@ function setup_ansible {
     RAW_INVENTORY=/etc/kolla/inventory
 
     # TODO(SamYaple): Move to virtualenv
-    sudo -H pip install -U "ansible>=2,<2.4" "docker>=2.0.0" "python-openstackclient" "python-neutronclient" "ara"
+    sudo -H pip install -U "ansible>=2,<2.4" "docker>=2.0.0" "python-openstackclient" "python-neutronclient" "ara" "cmd2<0.9.0"
     detect_distro
 
     sudo mkdir /etc/ansible