timuralp commented on a change in pull request #135:
URL: https://github.com/apache/jclouds/pull/135#discussion_r820248676



##########
File path: core/src/main/java/org/jclouds/ContextBuilder.java
##########
@@ -370,7 +371,11 @@ private Properties currentStateToUnexpandedProperties() {
          defaults.setProperty(PROPERTY_CREDENTIAL, credential);
       if (overrides.isPresent())
          putAllAsString(overrides.get(), defaults);
-      
putAllAsString(propertiesPrefixedWithJcloudsApiOrProviderId(getSystemProperties(),
 apiMetadata.getId(), providerId), defaults);
+      Map<String, Object> system = 
propertiesPrefixedWithJcloudsApiOrProviderId(getSystemProperties(), 
apiMetadata.getId(), providerId);
+      if (Strings.isNullOrEmpty((String) system.get(PROPERTY_ENDPOINT))) {
+         system.remove(PROPERTY_ENDPOINT);

Review comment:
       I think storing endpoint as a URL rather than a string would be 
preferable. I think the confusing part is that setting a system property like 
`-Djclouds.endpoint=` means an empty endpoint, rather than one that is not set, 
like here: https://github.com/gaul/s3proxy/blob/master/Dockerfile#L35




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@jclouds.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to