Merge "Fix AttributeError in getting a resource ID"

This commit is contained in:
Zuul 2018-04-06 18:51:15 +00:00 committed by Gerrit Code Review
commit 2e825700d6
1 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ import testtools
import novaclient
import novaclient.api_versions
from novaclient import base
import novaclient.client
from novaclient.v2 import networks
import novaclient.v2.shell
@ -371,7 +372,7 @@ class ClientTestBase(testtools.TestCase):
raise
time.sleep(poll_interval)
else:
self.fail("The resource '%s' still exists." % resource.id)
self.fail("The resource '%s' still exists." % base.getid(resource))
def name_generate(self):
"""Generate randomized name for some entity."""