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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Thu Sep 29 14:44:55 CDT 2011


branch "master" has been updated
       via  e371a1ed94d84f6b56ae0dfbf3be6840c05871eb (commit)
      from  e5c490b5aedc277148166ce0b7c2445c276bc610 (commit)

Summary of changes:
 src/ServiceLocator.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


- Log -----------------------------------------------------------------
commit e371a1ed94d84f6b56ae0dfbf3be6840c05871eb
Author: David M. Lee <dlee at digium.com>
Date:   Thu Sep 29 14:42:39 2011 -0500

    Use getBooleanPropertyValueWithDefault for consistency

diff --git a/src/ServiceLocator.cpp b/src/ServiceLocator.cpp
index 9bd0eaa..b7ec895 100644
--- a/src/ServiceLocator.cpp
+++ b/src/ServiceLocator.cpp
@@ -18,6 +18,7 @@
 #include <IceStorm/IceStorm.h>
 #include <IceBox/IceBox.h>
 
+#include <AsteriskSCF/Helpers/PropertyHelper.h>
 #include <AsteriskSCF/Core/Discovery/ServiceLocatorIf.h>
 #include <AsteriskSCF/Core/Discovery/ServiceLocatorEventsIf.h>
 #include <AsteriskSCF/logger.h>
@@ -30,6 +31,7 @@
 #include "ServiceLocatorStateReplicator.h"
 
 using namespace std;
+using namespace AsteriskSCF;
 using namespace AsteriskSCF::System::Discovery;
 using namespace AsteriskSCF::System::Logging;
 using namespace AsteriskSCF::Core::Discovery::V1;
@@ -254,7 +256,7 @@ void ServiceLocatorApp::start(const string& appName, const Ice::CommunicatorPtr&
 
 	locatorServiceManagement->setStateReplicator(mStateReplicator);
 
-        if (communicator->getProperties()->getPropertyWithDefault(appName + ".Standalone", "no") == "yes")
+        if (getBooleanPropertyValueWithDefault(communicator->getProperties(), appName + ".Standalone", false))
         {
 	    mReplicaService->standby();
             mStateReplicator->addListener(replicatorListenerProxy);

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


-- 
asterisk-scf/release/servicediscovery.git



More information about the asterisk-scf-commits mailing list