Connect to the right OpenSRF host for authentication feature/tools_current
authorDan Scott <dscott@laurentian.ca>
Fri, 17 Mar 2017 17:37:38 +0000 (13:37 -0400)
committerDan Scott <dscott@laurentian.ca>
Fri, 17 Mar 2017 17:37:38 +0000 (13:37 -0400)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
tools/patron-load/ldap_osrf_sync

index 065f89d..c91500a 100755 (executable)
@@ -700,7 +700,7 @@ def main(args=None):
         ARGS = args
 
     # Set the host for our requests
-    osrf.gateway.GatewayRequest.setDefaultHost(ARGS.eg_host)
+    osrf.gateway.GatewayRequest.setDefaultHost('%s://%s' % (credentials.OSRF_HTTP, ARGS.eg_host))
 
     # Pull all of our object definitions together
     load_idl()