Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

Commit

Permalink
Fix for specification file mismatch #121 (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
iann0036 authored and ojkelly committed Oct 5, 2018
1 parent 70ceecf commit c95d1d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions generate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c95d1d5

Please sign in to comment.