BIND 10 trac2114, updated. c4b36c504adffa60158493840b6683e17b87a912 [2114] comment and style

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Jul 4 07:54:39 UTC 2012


The branch, trac2114 has been updated
       via  c4b36c504adffa60158493840b6683e17b87a912 (commit)
      from  46d22b7afd987395a2ecb996d658c307e78148d7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c4b36c504adffa60158493840b6683e17b87a912
Author: Jelte Jansen <jelte at isc.org>
Date:   Wed Jul 4 09:54:28 2012 +0200

    [2114] comment and style

-----------------------------------------------------------------------

Summary of changes:
 src/lib/python/isc/config/config_data.py |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

-----------------------------------------------------------------------
diff --git a/src/lib/python/isc/config/config_data.py b/src/lib/python/isc/config/config_data.py
index ea6f507..174e98c 100644
--- a/src/lib/python/isc/config/config_data.py
+++ b/src/lib/python/isc/config/config_data.py
@@ -486,14 +486,19 @@ class MultiConfigData:
                         else:
                             return None
                     id_part = id_parts.pop(0)
-                    item_id, list_indices = isc.cc.data.split_identifier_list_indices(id_part)
+                    item_id, list_indices =\
+                        isc.cc.data.split_identifier_list_indices(id_part)
 
                     named_set_value, type = self.get_value(id_list)
                     if item_id in named_set_value.keys():
                         result = named_set_value[item_id]
+                        # If the item is a list and we have indices in the
+                        # identifier part, continue with the item pointed to
+                        # by those indices
                         if list_indices is not None:
                             while len(list_indices) > 0:
                                 result = result[list_indices.pop(0)]
+
                         if len(id_parts) > 0:
                             # we are looking for the *default* value.
                             # so if not present in here, we need to



More information about the bind10-changes mailing list