Skip to content

Commit

Permalink
Fix for specification file mismatch KablamoOSS#121
Browse files Browse the repository at this point in the history
  • Loading branch information
iann0036 committed Oct 4, 2018
1 parent 70ceecf commit 8973b11
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 8973b11

Please sign in to comment.