Merge "Fix share status waiter within tempest"

This commit is contained in:
Jenkins 2014-08-13 21:00:02 +00:00 committed by Gerrit Code Review
commit c8112434eb

View File

@ -170,7 +170,9 @@ class SharesClient(rest_client.RestClient):
time.sleep(self.build_interval)
__, body = self.get_share(share_id)
share_status = body['status']
if 'error' in share_status:
if share_status == status:
return
elif 'error' in share_status:
raise share_exceptions.\
ShareBuildErrorException(share_id=share_id)