gaul commented on a change in pull request #135: URL: https://github.com/apache/jclouds/pull/135#discussion_r820088521
########## 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 don't strongly oppose this but why does the caller set an empty string? Should we check all keys to see if they are empty? Should we do other input validation like checking whether the endpoint is a URL? -- 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