MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / isPricingRelevantConfigKey

Function isPricingRelevantConfigKey

cmd/pulumi.go:1433–1444  ·  view source on GitHub ↗

isPricingRelevantConfigKey returns true if the config key affects pricing and should NOT be auto-filled with a dummy value.

(key string)

Source from the content-addressed store, hash-verified

1431// isPricingRelevantConfigKey returns true if the config key affects pricing
1432// and should NOT be auto-filled with a dummy value.
1433func isPricingRelevantConfigKey(key string) bool {
1434 if pricingRelevantExact[key] {
1435 return true
1436 }
1437 lower := strings.ToLower(key)
1438 for _, suffix := range pricingRelevantSuffixes {
1439 if strings.HasSuffix(lower, strings.ToLower(suffix)) {
1440 return true
1441 }
1442 }
1443 return false
1444}
1445
1446// dummyValueForConfigKey returns a reasonable dummy value for a non-pricing
1447// config key. For keys that look like they expect a number, returns "1".

Callers 1

runPulumiEstimateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected