Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>openstack4j-core</artifactId>
<version>co-3.12.2</version>
<version>co-3.12.3</version>
<name>OpenStack4j Core</name>
<description>OpenStack Java API</description>
<url>https://github.com/openstack4j/openstack4j/</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ protected KeystoneAuth(Type type) {
this.type = type;
}

@JsonIgnore
public Type getType() {
return type;
}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down