From 9dbe97a3ec1d4ed4bda3a124ac3a9425bc6de010 Mon Sep 17 00:00:00 2001 From: Adam Pippin Date: Sun, 14 Feb 2021 16:19:10 -0800 Subject: [PATCH] Don't write state information into metadata from engine as all the actual state is now in compiler --- app/Engine/Engine.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Engine/Engine.php b/app/Engine/Engine.php index e2493f7..0f5c9d1 100644 --- a/app/Engine/Engine.php +++ b/app/Engine/Engine.php @@ -91,10 +91,8 @@ class Engine $documents = array_values($documents); // Pass it all in and compile - $document = $this->compileDocuments($documents, $options); - - // Set metadata in output - $document->setChildByPath('Metadata.Stack', $files); + $this->compileDocuments($documents, $options); + $document = $this->getOutputDocument(); // Remove cfnpp block, that doesn't go to CloudFormation $cfnpp = $document->getChildByName('cfnpp');