Fixed a typo
authorSapan Bhatia <sapanb@cs.princeton.edu>
Wed, 22 Oct 2014 05:18:18 +0000 (01:18 -0400)
committerSapan Bhatia <sapanb@cs.princeton.edu>
Wed, 22 Oct 2014 05:18:18 +0000 (01:18 -0400)
planetstack/openstack_observer/steps/sync_site_deployments.py

index 1d51e4e..b5e9f9a 100644 (file)
@@ -27,9 +27,9 @@ class SyncSiteDeployments(OpenStackSyncStep):
                site_deployment.tenant_id = res[0]['id']
                site_deployment.save()
        elif (len(res)):
-               raise Exception('Could not assign roles for user %s'%tenant_fields['name'])
+               raise Exception('Could not assign roles for user %s'%tenant_fields['tenant'])
        else:
-               raise Exception('Could not create or update user %s'%tenant_fields['name'])
+               raise Exception('Could not create or update user %s'%tenant_fields['tenant'])
             
     def delete_record(self, site_deployment):
         if site_deployment.tenant_id: