fix misspelling 'configuration' of functions

Change-Id: I2038d9796c8f63e4fa6577d7bd9360cf97aa05c9
This commit is contained in:
inspurericzhang 2018-08-15 16:13:18 +08:00
parent 7630ecb8f2
commit fb3baeac73
3 changed files with 6 additions and 6 deletions

View File

@ -67,13 +67,13 @@ class NSXClient(object):
verify=False, data=data)
return response
def _get_tuning_configration(self):
def _get_tuning_configuration(self):
response = self._get("json",
"/api/4.0/edgePublish/tuningConfiguration")
return jsonutils.loads(response.text)
def configure_reservations(self):
config = self._get_tuning_configration()
config = self._get_tuning_configuration()
# NSX only receive XML format for the resource allocation update
tuning = et.Element('tuningConfiguration')
for opt, val in six.iteritems(config):

View File

@ -995,7 +995,7 @@ class Vcns(object):
self._nsx_version = '6.1'
return self._nsx_version
def get_tuning_configration(self):
def get_tuning_configuration(self):
uri = '/api/4.0/edgePublish/tuningConfiguration'
h, c = self.do_request(HTTP_GET, uri, decode=True)
return c
@ -1003,7 +1003,7 @@ class Vcns(object):
def configure_aggregate_publishing(self):
uri = "/api/4.0/edgePublish/tuningConfiguration"
# Ensure that configured values are not changed
config = self.get_tuning_configration()
config = self.get_tuning_configuration()
LOG.debug("Tuning configuration: %s", config)
tuning = et.Element('tuningConfiguration')
for opt, val in six.iteritems(config):
@ -1018,7 +1018,7 @@ class Vcns(object):
def configure_reservations(self):
uri = "/api/4.0/edgePublish/tuningConfiguration"
config = self.get_tuning_configration()
config = self.get_tuning_configuration()
tuning = et.Element('tuningConfiguration')
for opt, val in six.iteritems(config):
child = et.Element(opt)

View File

@ -1217,7 +1217,7 @@ class FakeVcns(object):
def get_version(self):
return '6.2.3'
def get_tuning_configration(self):
def get_tuning_configuration(self):
return {
'lockUpdatesOnEdge': True,
'edgeVMHealthCheckIntervalInMin': 0,