Replacing data_processing with data-processing

Using data_processing when setting keystone static catalog causes
Sahara not to find the endpoint afterwards since keystone translates
data_processing to data-processing

Change-Id: I959c1bc76eebc4ddb787f872ce7319bd6ba83be8
Closes-bug: #1356053
This commit is contained in:
Sergey Reshetnyak
2015-03-04 17:47:52 +03:00
parent 6950453e12
commit 6373b5178f

View File

@@ -36,10 +36,10 @@ class SaharaClientPlugin(client_plugin.ClientPlugin):
def _create(self):
con = self.context
endpoint_type = self._get_client_option('sahara', 'endpoint_type')
endpoint = self.url_for(service_type='data_processing',
endpoint = self.url_for(service_type='data-processing',
endpoint_type=endpoint_type)
args = {
'service_type': 'data_processing',
'service_type': 'data-processing',
'input_auth_token': self.auth_token,
'auth_url': con.auth_url,
'project_name': con.tenant,