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

Spelling fixes

parent 10613e28
......@@ -63,7 +63,7 @@ class Client(object):
passman = None
def __init__(self, baseurl, username, password, subscription=None,
principial=None):
principal=None):
if baseurl.endswith("/"):
baseurl = baseurl[:-1]
if baseurl.endswith(ODATA_SUFFIX):
......@@ -72,7 +72,7 @@ class Client(object):
self.auth = HTTPBasicAuth(username, password)
self.session = requests.Session()
self.subscription = subscription
self.principial = principial
self.principal = principal
def _format_url(self, resource, query=None, args=None, subresource=None,
expand=None):
......@@ -101,7 +101,7 @@ class Client(object):
headers = {}
if reqdata:
headers["content-type"] = "application/atom+xml;type=entry"
if self.principial:
if self.principal:
headers["x-ms-principal-id"] = self.principal
resp = self.session.request(method, url, data=reqdata, headers=headers,
auth=self.auth, verify=False)
......
......@@ -8,7 +8,7 @@ requires = [
]
setup(name='scvmm-client-py',
version='0.5',
version='0.6',
description='',
author='',
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