Use os_cache instead no_cache

The 'no_cache' argument is deprecated in Ocata and its use may
result in errors in future releases. Use 'os_cache' instead.

reference:73196fd3c1
Change-Id: I64d75cab13429ab78c29a2add68ebfc97cc77958
This commit is contained in:
jiansong 2017-02-07 22:09:14 -08:00 committed by jian.song
parent 1098ebe298
commit 4b644d2b96

View File

@ -171,7 +171,7 @@ def create_nova_client(user, service_type=None):
user.auth_key,
project_name=user.tenant,
auth_url=test_config.nova_client['auth_url'],
service_type=service_type, no_cache=True,
service_type=service_type, os_cache=False,
cacert=test_config.values.get('cacert', None))
openstack.authenticate()
return TestClient(openstack)