Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlah committed Oct 6, 2023
1 parent e5e74bd commit d820f14
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/org/testcontainers/containers/CephContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ public void configure() {
addEnv("CEPH_DEMO_UID", CEPH_DEMO_UID);
addEnv(
"CEPH_DEMO_ACCESS_KEY",
this.getCephAccessKey() != null
? this.getCephAccessKey()
this.cephAccessKey != null
? this.cephAccessKey
: (this.cephAccessKey = CEPH_RGW_DEFAULT_ACCESS_KEY)
);
addEnv(
"CEPH_DEMO_SECRET_KEY",
this.getCephSecretKey() != null
? this.getCephSecretKey()
this.cephSecretKey != null
? this.cephSecretKey
: (this.cephSecretKey = CEPH_RGW_DEFAULT_SECRET_KEY)
);
addEnv("NETWORK_AUTO_DETECT", "1");
Expand All @@ -87,7 +87,7 @@ public CephContainer withCephSecretKey(String cephSecretKey) {
}

public int getCephPort() {
return getMappedPort(8080);
return getMappedPort(CEPH_RGW_DEFAULT_PORT);
}

public URI getCephUrl() throws URISyntaxException {
Expand Down

0 comments on commit d820f14

Please sign in to comment.