diff --git a/core/pom.xml b/core/pom.xml index 1fbcb044..de541516 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -6,7 +6,7 @@ 4.0.0 openstack4j-core - co-3.12.2 + co-3.12.3 OpenStack4j Core OpenStack Java API https://github.com/openstack4j/openstack4j/ diff --git a/core/src/main/java/org/openstack4j/openstack/identity/v3/domain/KeystoneAuth.java b/core/src/main/java/org/openstack4j/openstack/identity/v3/domain/KeystoneAuth.java index cbdbe3d6..9bc4253f 100644 --- a/core/src/main/java/org/openstack4j/openstack/identity/v3/domain/KeystoneAuth.java +++ b/core/src/main/java/org/openstack4j/openstack/identity/v3/domain/KeystoneAuth.java @@ -63,6 +63,7 @@ protected KeystoneAuth(Type type) { this.type = type; } + @JsonIgnore public Type getType() { return type; } @@ -200,13 +201,15 @@ public AuthUser(String username, String password, Identifier domainIdentifier) { this.password = password; if (domainIdentifier != null) { domain = new AuthDomain(); - if (domainIdentifier.isTypeID()) - domain.setId(domainIdentifier.getId()); - else - domain.setName(domainIdentifier.getId()); + if (domainIdentifier.isTypeID()) { + domain.setId(domainIdentifier.getId()); + } else { + domain.setName(domainIdentifier.getId()); + } setName(username); - } else - setId(username); + } else { + setId(username); + } } @Override @@ -342,10 +345,11 @@ public static final class AuthDomain extends BasicResourceEntity implements Doma private String name; public AuthDomain(Identifier domain) { - if (domain.isTypeID()) - this.id = domain.getId(); - else - this.name = domain.getId(); + if (domain.isTypeID()) { + this.id = domain.getId(); + } else { + this.name = domain.getId(); + } } @Override