From 488950ad6ffc3cf0327aa6f460681942a596b369 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Sun, 7 Apr 2013 20:35:50 -0400 Subject: [PATCH] fix syntax --- plstackapi/openstack/driver.py | 2 +- plstackapi/planetstack/api/roles.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.0