switch Internal/External Locator Names for Dublin
[aaf/authz.git] / auth / auth-cass / src / main / java / org / onap / aaf / auth / direct / DirectAAFLocator.java
index 81debc0..bd77bee 100644 (file)
@@ -73,8 +73,11 @@ public class DirectAAFLocator extends AbsAAFLocator<AuthzTrans> {
         }
         
         try {
-               RegistrationPropHolder rph = new RegistrationPropHolder(access,0);
-               String aaf_url = rph.replacements(getClass().getSimpleName(),"https://"+Config.AAF_LOCATE_URL_TAG+"/%CNS."+name, null,null);
+               String aaf_url = access.getProperty(Config.AAF_URL, null);
+               if(aaf_url==null) {
+                       RegistrationPropHolder rph = new RegistrationPropHolder(access,0);
+                       aaf_url = rph.replacements(getClass().getSimpleName(),"https://"+Config.AAF_LOCATE_URL_TAG+"/%NS."+name, null,null);
+               }
                //access.getProperty("/locate/"+name+':'+version;
                access.printf(Level.INIT,"Creating DirectAAFLocator to %s",aaf_url);
             uri = new URI(aaf_url);