Skip to content

Commit

Permalink
Change is_global == 1 to is_global == True
Browse files Browse the repository at this point in the history
Fixes bug 892429 - which correctly points out incorrect use of integer 1 instead of boolean True

Change-Id: I360ba8275ca3e67af6b99a7859421aa2e3c0d2bc
  • Loading branch information
ziadsawalha committed Dec 6, 2011
1 parent 0d8bc57 commit ef50a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keystone/backends/sqlalchemy/api/tenant.py
Expand Up @@ -186,7 +186,7 @@ def get_all_endpoints(self, tenant_id, session=None):
session = get_session()
endpointTemplates = aliased(models.EndpointTemplates)
q = session.query(endpointTemplates).\
filter(endpointTemplates.is_global == 1)
filter(endpointTemplates.is_global == True)
if tenant_id:
ep = aliased(models.Endpoints)
q1 = session.query(endpointTemplates).join((ep,
Expand Down

0 comments on commit ef50a33

Please sign in to comment.