From 589026cdd4707556058b5bebf341e2af5062bed4 Mon Sep 17 00:00:00 2001
From: Dean Troyer <dtroyer@gmail.com>
Date: Tue, 2 Apr 2019 08:36:33 -0500
Subject: [PATCH] Volume backup functional test tweak

Waiting for status in all the wrong places...

Change-Id: I531ee6e0c00b623c6fd30d40df1f1f36bf86233f
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
---
 openstackclient/tests/functional/volume/v2/test_backup.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/openstackclient/tests/functional/volume/v2/test_backup.py b/openstackclient/tests/functional/volume/v2/test_backup.py
index e4890b00ea..8f5c032c0a 100644
--- a/openstackclient/tests/functional/volume/v2/test_backup.py
+++ b/openstackclient/tests/functional/volume/v2/test_backup.py
@@ -39,14 +39,15 @@ class VolumeBackupTests(common.BaseVolumeTests):
             '--size 1 ' +
             vol_id
         ))
+        self.wait_for_status("volume", vol_id, "available")
+
         # create a backup
         backup = json.loads(self.openstack(
             'volume backup create -f json ' +
             vol_id
         ))
-
-        self.wait_for_status("volume", vol_id, "available")
         self.wait_for_status("backup", backup['id'], "available")
+
         # restore the backup
         backup_restored = json.loads(self.openstack(
             'volume backup restore -f json %s %s'