MCPcopy Create free account
hub / github.com/coder/coder / isNonCoderResourceReplacement

Function isNonCoderResourceReplacement

provisioner/terraform/resource_replacements.go:146–151  ·  view source on GitHub ↗
(ch *tfjson.ResourceChange)

Source from the content-addressed store, hash-verified

144}
145
146func isNonCoderResourceReplacement(ch *tfjson.ResourceChange) bool {
147 if ch == nil || ch.Change == nil || !ch.Change.Actions.Replace() {
148 return false
149 }
150 return strings.Index(ch.Type, "coder_") != 0
151}
152
153func replacePathsToStrings(in []any) []string {
154 out := make([]string, 0, len(in))

Callers 2

hasResourceReplacementFunction · 0.85

Calls 1

ReplaceMethod · 0.80

Tested by

no test coverage detected