From a747cd25f76440a2320bd5e1c65252d31eb9b189 Mon Sep 17 00:00:00 2001
From: Swapnil Kulkarni <me@coolsvap.net>
Date: Wed, 13 May 2015 09:26:15 +0000
Subject: [PATCH] Update the glance image-list with openstack image list

Change-Id: I0f0f15cb204daf12fbc12384f04a2cd9618c4bef
---
 lib/tempest | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/tempest b/lib/tempest
index cd8fbd725f..df986728c1 100644
--- a/lib/tempest
+++ b/lib/tempest
@@ -143,9 +143,7 @@ function configure_tempest {
                 image_uuid_alt="$IMAGE_UUID"
             fi
             images+=($IMAGE_UUID)
-        # TODO(stevemar): update this command to use openstackclient's `openstack image list`
-        # when it supports listing by status.
-        done < <(glance image-list --status=active | awk -F'|' '!/^(+--)|ID|aki|ari/ { print $3,$2 }')
+        done < <(openstack image list --property status=active | awk -F'|' '!/^(+--)|ID|aki|ari/ { print $3,$2 }')
 
         case "${#images[*]}" in
             0)