From 3c3f78f482d0a8906ea6aaf8d11155ae5714530e Mon Sep 17 00:00:00 2001 From: mgriffin13 Date: Fri, 16 Nov 2018 10:58:20 -0500 Subject: [PATCH] bug: record modified config The current code simply reads the marathon.json file and then writes the exact same marathon-rendered.json file. This update writes the actual rendered file that is passed to DC/OS. --- .../mesosphere/velocity/marathon/impl/MarathonBuilderImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/mesosphere/velocity/marathon/impl/MarathonBuilderImpl.java b/src/main/java/com/mesosphere/velocity/marathon/impl/MarathonBuilderImpl.java index 37be5b9..8069b75 100644 --- a/src/main/java/com/mesosphere/velocity/marathon/impl/MarathonBuilderImpl.java +++ b/src/main/java/com/mesosphere/velocity/marathon/impl/MarathonBuilderImpl.java @@ -188,7 +188,7 @@ public MarathonBuilder toFile(final String filename) throws InterruptedException if (renderedFilepath.exists() && renderedFilepath.isDirectory()) throw new MarathonFileInvalidException("File '" + realFilename + "' is a directory; not overwriting."); - renderedFilepath.write(json.toString(), null); + renderedFilepath.write(getApp().toString(), null); return this; }