Clear system property for credentials for file paths

jclouds will override the passed in credentials if the system property is present
pull/554/head
Lars Hagen 2023-09-26 13:37:04 +02:00 zatwierdzone przez GitHub
rodzic 1b33acacc5
commit ff347352bf
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -325,6 +325,9 @@ public final class Main {
StandardCharsets.UTF_8).read();
}
properties.remove(Constants.PROPERTY_CREDENTIAL);
// We also need to clear the system property, otherwise the
// credential will be overridden by the system property.
System.clearProperty(Constants.PROPERTY_CREDENTIAL);
}
if (identity == null || credential == null) {