Skip to content

Commit

Permalink
Merge pull request #1883 from hashicorp/b/normalizing-vm-vmss-cpu
Browse files Browse the repository at this point in the history
tools/importer-rest-api-specs: normalizing `Vm`, `Vmss` and `Cpu`
  • Loading branch information
tombuildsstuff authored Nov 29, 2022
2 parents 22a7c66 + 6ae7355 commit f95b434
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,11 @@ func NormalizeCanonicalisation(input string) string {

// intentionally case-sensitive
output = strings.ReplaceAll(output, "Ip", "IP")
output = strings.ReplaceAll(output, "Vmss", "VMSS")
output = strings.ReplaceAll(output, "vmss", "VMSS")
output = strings.ReplaceAll(output, "Vm", "VM")
output = strings.ReplaceAll(output, "vm", "VM")
output = strings.ReplaceAll(output, "Cpu", "CPU")

output = strings.ReplaceAll(output, "Https", "HTTPS")
output = strings.ReplaceAll(output, "Http", "HTTP")
Expand Down

0 comments on commit f95b434

Please sign in to comment.