From b0a03f43e0a7b2da0b7bc64891a47302aeb3bb2d Mon Sep 17 00:00:00 2001
From: Monty Taylor <mordred@inaugust.com>
Date: Mon, 10 Mar 2014 22:21:47 -0700
Subject: [PATCH] Skip downloading giant VMware images

We're never going to use them in devstack-gate.

Change-Id: I66b7d768276616b8f11052449a41ca304cbf8942
---
 .../files/nodepool/scripts/cache_devstack.py                 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/openstack_project/files/nodepool/scripts/cache_devstack.py b/modules/openstack_project/files/nodepool/scripts/cache_devstack.py
index 9767c3aa84..2562e42add 100755
--- a/modules/openstack_project/files/nodepool/scripts/cache_devstack.py
+++ b/modules/openstack_project/files/nodepool/scripts/cache_devstack.py
@@ -96,7 +96,10 @@ def local_prep(distribution):
                     continue
                 if line[0] == line[-1] == '"':
                     line = line[1:-1]
-                images += [x.strip() for x in line.split(',')]
+                # Add image to the list to be downloaded, but
+                # skip downloading giant vmware images
+                images += [x.strip() for x in line.split(',')
+                           if not x.strip().endswith('vmdk')]
         branch_data['images'] = images
         branches.append(branch_data)
     return branches