[asterisk-scf-commits] asterisk-scf/integration/configurator.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Mar 2 08:49:58 CST 2011


branch "master" has been updated
       via  38dd03fdce2ff014ad6de91788439b71af0e5f24 (commit)
      from  eaafaf0a795eedeb446b612217f5970b49340dbc (commit)

Summary of changes:
 Configurator.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)


- Log -----------------------------------------------------------------
commit 38dd03fdce2ff014ad6de91788439b71af0e5f24
Author: Joshua Colp <jcolp at digium.com>
Date:   Wed Mar 2 10:50:34 2011 -0400

    Don't require every option in a config file to be mapped.

diff --git a/Configurator.py b/Configurator.py
index 7737542..8bef119 100755
--- a/Configurator.py
+++ b/Configurator.py
@@ -49,7 +49,10 @@ class OptionMapper():
 
     def execute(self, group, section, option):
         """Map options to configuration items based on options set"""
-        object = self.options[option][0]
+        try:
+            object = self.options[option][0]
+        except:
+            return
         item = self.options[option][1]
         item_name = self.options[option][2]
         method = self.options[option][3]

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


-- 
asterisk-scf/integration/configurator.git



More information about the asterisk-scf-commits mailing list