From c95d1d5a2994d01ad20c2252d93884e52718b5dd Mon Sep 17 00:00:00 2001 From: Ian Mckay Date: Fri, 5 Oct 2018 13:55:58 +1000 Subject: [PATCH] Fix for specification file mismatch #121 (#128) --- generate/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/generate/main.go b/generate/main.go index 4a058d0a..bba68659 100644 --- a/generate/main.go +++ b/generate/main.go @@ -43,6 +43,12 @@ func main() { log.Println("Load and de-dupe the specification") cfnSpec = buildUniqueSet(sourceDir, cfnEndpoints) + // Temporary fix for https://github.com/KablamoOSS/kombustion/issues/121 + if cfnSpec.ResourceTypes["AWS::EC2::VPCEndpoint"].Properties["VPCEndpointType"].Documentation != "" { + cfnSpec.ResourceTypes["AWS::EC2::VPCEndpoint"].Properties["VpcEndpointType"] = cfnSpec.ResourceTypes["AWS::EC2::VPCEndpoint"].Properties["VPCEndpointType"] + delete(cfnSpec.ResourceTypes["AWS::EC2::VPCEndpoint"].Properties, "VPCEndpointType") + } + // Build the Yaml Parsers log.Println("Build the Yaml Parsers") buildYamlParsers(cfnSpec)