Test: switch osresources to Credential class

Endpoint has been deprecated for a while.

Change-Id: I88ee93a5378bf3a744d5c7defc40dc6587d9898c
This commit is contained in:
Chris St. Pierre 2016-04-06 09:44:37 -05:00
parent 997f56711c
commit f3173f157f

View File

@ -21,6 +21,7 @@ import json
import subprocess
import sys
from rally.common import objects
from rally.common.plugin import discover
from rally import consts
from rally import osclients
@ -216,8 +217,7 @@ class CloudResources(object):
"""
def __init__(self, **kwargs):
credential = osclients.objects.Endpoint(**kwargs)
self.clients = osclients.Clients(credential)
self.clients = osclients.Clients(objects.Credential(**kwargs))
def _deduplicate(self, lst):
"""Change list duplicates to make all items unique.