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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Thu Sep 22 13:01:28 CDT 2011


branch "master" has been updated
       via  9c000ddde667e634c4bb393b190af2d20fd438d0 (commit)
      from  1a8be87a1573715a18281bddfbbd66148a7147e0 (commit)

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


- Log -----------------------------------------------------------------
commit 9c000ddde667e634c4bb393b190af2d20fd438d0
Author: Ken Hunt <ken.hunt at digium.com>
Date:   Thu Sep 22 13:01:18 2011 -0500

    Make the script friendler when spaces are in the path.

diff --git a/Configurator.py b/Configurator.py
index c794980..cf7c449 100755
--- a/Configurator.py
+++ b/Configurator.py
@@ -21,8 +21,8 @@
 import ConfigParser, traceback, os, Ice, getopt, sys
 
 # Load and make the configuration interface available, we require it
-Ice.loadSlice("-I" + os.environ["ASTSCF_HOME"] + " -I" + Ice.getSliceDir() + " --all " + os.environ["ASTSCF_HOME"] + "/AsteriskSCF/System/Component/ConfigurationIf.ice")
-Ice.loadSlice("-I" + os.environ["ASTSCF_HOME"] + " -I" + Ice.getSliceDir() + " --all " + os.environ["ASTSCF_HOME"] + "/AsteriskSCF/Core/Discovery/ServiceLocatorIf.ice")
+Ice.loadSlice("-I\"" + os.environ["ASTSCF_HOME"] + "\" -I\"" + Ice.getSliceDir() + "\" --all \"" + os.environ["ASTSCF_HOME"] + "/AsteriskSCF/System/Component/ConfigurationIf.ice\"")
+Ice.loadSlice("-I\"" + os.environ["ASTSCF_HOME"] + "\" -I\"" + Ice.getSliceDir() + "\" --all \"" + os.environ["ASTSCF_HOME"] + "/AsteriskSCF/Core/Discovery/ServiceLocatorIf.ice\"")
 import AsteriskSCF.System.Configuration.V1
 import AsteriskSCF.Core.Discovery.V1
 
@@ -212,10 +212,11 @@ class ConfiguratorApp(Ice.Application):
             print "Applying configuration"
 
             try:
+                # print self.visitor.groups  # <- Handiest debug aid ever.
                 configurationService.setConfiguration(self.visitor.groups)
                 print "Configuration applied"
             except:
-                print "Configuration could not be applied - Failed to contact component"
+		print "Exception calling setConfiguration: ", sys.exc_info()[0]
 		traceback.print_exc()
 
         else:

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


-- 
asterisk-scf/release/configurator.git



More information about the asterisk-scf-commits mailing list