Commit 0f75f721 authored by Sigmund Augdal's avatar Sigmund Augdal

Spelling fixes

parent 10613e28
...@@ -63,7 +63,7 @@ class Client(object): ...@@ -63,7 +63,7 @@ class Client(object):
passman = None passman = None
def __init__(self, baseurl, username, password, subscription=None, def __init__(self, baseurl, username, password, subscription=None,
principial=None): principal=None):
if baseurl.endswith("/"): if baseurl.endswith("/"):
baseurl = baseurl[:-1] baseurl = baseurl[:-1]
if baseurl.endswith(ODATA_SUFFIX): if baseurl.endswith(ODATA_SUFFIX):
...@@ -72,7 +72,7 @@ class Client(object): ...@@ -72,7 +72,7 @@ class Client(object):
self.auth = HTTPBasicAuth(username, password) self.auth = HTTPBasicAuth(username, password)
self.session = requests.Session() self.session = requests.Session()
self.subscription = subscription self.subscription = subscription
self.principial = principial self.principal = principal
def _format_url(self, resource, query=None, args=None, subresource=None, def _format_url(self, resource, query=None, args=None, subresource=None,
expand=None): expand=None):
...@@ -101,7 +101,7 @@ class Client(object): ...@@ -101,7 +101,7 @@ class Client(object):
headers = {} headers = {}
if reqdata: if reqdata:
headers["content-type"] = "application/atom+xml;type=entry" headers["content-type"] = "application/atom+xml;type=entry"
if self.principial: if self.principal:
headers["x-ms-principal-id"] = self.principal headers["x-ms-principal-id"] = self.principal
resp = self.session.request(method, url, data=reqdata, headers=headers, resp = self.session.request(method, url, data=reqdata, headers=headers,
auth=self.auth, verify=False) auth=self.auth, verify=False)
......
...@@ -8,7 +8,7 @@ requires = [ ...@@ -8,7 +8,7 @@ requires = [
] ]
setup(name='scvmm-client-py', setup(name='scvmm-client-py',
version='0.5', version='0.6',
description='', description='',
author='', author='',
author_email='', author_email='',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment