From: Tony Mack Date: Mon, 8 Apr 2013 00:35:50 +0000 (-0400) Subject: fix syntax X-Git-Tag: 1.0~250 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=488950ad6ffc3cf0327aa6f460681942a596b369;p=plstackapi.git fix syntax --- diff --git a/plstackapi/openstack/driver.py b/plstackapi/openstack/driver.py index 5a42d79..9d00976 100644 --- a/plstackapi/openstack/driver.py +++ b/plstackapi/openstack/driver.py @@ -19,7 +19,7 @@ class OpenStackDriver: tenants = self.shell.keystone.tenants.findall(name=tenant_name) if not tenants: fields = {'tenant_name': tenant_name, 'enabled': enabled, - 'description', description} + 'description': description} tenant = self.shell.keystone.tenants.create(**fields) else: tenant = tenants[0] diff --git a/plstackapi/planetstack/api/roles.py b/plstackapi/planetstack/api/roles.py index 0a2eb2a..c181adf 100644 --- a/plstackapi/planetstack/api/roles.py +++ b/plstackapi/planetstack/api/roles.py @@ -5,7 +5,7 @@ from plstackapi.planetstack.models import * def auth_check(auth): client = OpenStackShell(username=auth['Username'], - password=auth['AuthMethod]', + password=auth['AuthMethod'], tenant=auth['LoginBase']) client.authenticate() return client