Repository: libcloud
Updated Branches:
  refs/heads/trunk 514cbb334 -> 663f507d7


Added explination for 'if XXX and YYY != XXX:' (in a nut shell provides support 
for partial lookups)

Closes #688

Signed-off-by: Tomaz Muraus <to...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/f87f9450
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/f87f9450
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/f87f9450

Branch: refs/heads/trunk
Commit: f87f9450256658ea03d8111b4703d858f20ac824
Parents: 514cbb3
Author: Ryan McLean <ryan1...@hotmail.com>
Authored: Tue Jan 26 08:21:23 2016 +0000
Committer: Tomaz Muraus <to...@apache.org>
Committed: Sat Jan 30 22:33:32 2016 +0100

----------------------------------------------------------------------
 libcloud/common/openstack_identity.py | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/f87f9450/libcloud/common/openstack_identity.py
----------------------------------------------------------------------
diff --git a/libcloud/common/openstack_identity.py 
b/libcloud/common/openstack_identity.py
index f98cc72..ca8b923 100644
--- a/libcloud/common/openstack_identity.py
+++ b/libcloud/common/openstack_identity.py
@@ -233,6 +233,12 @@ class OpenStackServiceCatalog(object):
         endpoints = []
 
         for entry in self._entries:
+            """
+                if XXX and YYYY != XXX
+                provides support for partials lookups
+                i.e. This lets you pass in only one of them, neither, or both,
+                and it does the right thing in all cases.
+            """
             if service_type and entry.service_type != service_type:
                 continue
 

Reply via email to