Merge "os-xenapi: Grammatical errors about swap host function"

This commit is contained in:
Jenkins 2017-07-19 11:10:53 +00:00 committed by Gerrit Code Review
commit 5cf1e7deff
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ class XenAPISession(object):
def swap_xapi_host(self, url, host_addr):
"""Replace the XenServer address present in 'url' with 'host_addr'."""
temp_url = urllib.parse.urlparse.urlparse(url)
temp_url = urllib.parse.urlparse(url)
return url.replace(temp_url.hostname, '%s' % host_addr)
def _populate_session_pool(self, url, user, pw):