[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 May 26 10:48:48 CDT 2011


branch "master" has been updated
       via  277654d75b173d4b7c394f43e3ba6f66be33e4dc (commit)
      from  5652963f45288888f1716b32d4784b89d208b8cc (commit)

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


- Log -----------------------------------------------------------------
commit 277654d75b173d4b7c394f43e3ba6f66be33e4dc
Author: Ken Hunt <ken.hunt at digium.com>
Date:   Thu May 26 10:47:47 2011 -0500

    Added traceback for the exceptions that we can't work around.

diff --git a/Configurator.py b/Configurator.py
index 831441f..f379a0b 100755
--- a/Configurator.py
+++ b/Configurator.py
@@ -18,7 +18,7 @@
 
 # Asterisk SCF Configurator Module
 
-import ConfigParser, os, Ice, getopt, sys
+import ConfigParser, traceback, os, Ice, getopt, sys
 
 # Load and make the configuration interface available, we require it
 Ice.loadSlice('-I. --all ConfigurationIf.ice')
@@ -206,6 +206,7 @@ class ConfiguratorApp(Ice.Application):
                     configurationService.removeConfigurationGroups(groups)
                 except:
                     print >> sys.stderr, "Configuration could not be wiped - Failed to contact component"
+		    traceback.print_exc()
                     return -1
 
             print "Applying configuration"
@@ -215,6 +216,7 @@ class ConfiguratorApp(Ice.Application):
                 print "Configuration applied"
             except:
                 print "Configuration could not be applied - Failed to contact component"
+		traceback.print_exc()
 
         else:
             print "No configuration to apply"

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


-- 
asterisk-scf/release/configurator.git



More information about the asterisk-scf-commits mailing list