Skip to content

Commit bef27de

Browse files
committed
fix docker serialization and disk_quota
1 parent 35753d7 commit bef27de

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

cloudfoundry-operations/src/main/java/org/cloudfoundry/operations/applications/ApplicationManifestUtilsCommon.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,11 @@ static Map<String, Object> toApplicationYaml(_ApplicationManifestCommon applicat
423423
if (null != disk) {
424424
putIfPresent(yaml, "disk_quota", applicationManifest.getDisk().toString() + "M");
425425
}
426-
putIfPresent(yaml, "docker", applicationManifest.getDocker());
426+
putIfPresent(
427+
yaml,
428+
"docker",
429+
applicationManifest.getDocker(),
430+
ApplicationManifestUtilsCommon::toDockerYaml);
427431
putIfPresent(yaml, "domains", applicationManifest.getDomains());
428432
putIfPresent(yaml, "env", applicationManifest.getEnvironmentVariables());
429433
putIfPresent(

cloudfoundry-operations/src/main/java/org/cloudfoundry/operations/applications/ApplicationManifestUtilsV3.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ private static ManifestV3Process getProcess(
197197

198198
asString(raw, "type", variables, builder::type);
199199
asString(raw, "command", variables, builder::command);
200-
asString(raw, "disk", variables, builder::disk);
200+
asString(raw, "disk_quota", variables, builder::disk);
201201
asString(raw, "health-check-http-endpoint", variables, builder::healthCheckHttpEndpoint);
202202
asInteger(
203203
raw,

0 commit comments

Comments
 (0)