Skip to content

Commit

Permalink
fix typo in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ilia-medvedev-codefresh committed Sep 17, 2024
1 parent 9ae861d commit cfeacb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codefresh/resource_pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,7 @@ func mapResourceToPipeline(d *schema.ResourceData) (*cfclient.Pipeline, error) {
// This function is used to extract the spec attributes from the original_yaml_string attribute.
// Typically, unmarshalling the YAML string is problematic because the order of the attributes is not preserved.
// Namely, we care a lot about the order of the steps and stages attributes.
// For this purpose we use yq that preserves the order or attributes when converting to json.
// For this purpose we use yq that preserves the order of attributes when converting to json.
func extractSpecAttributesFromOriginalYamlString(originalYamlString string, pipeline *cfclient.Pipeline) error {

for _, attribute := range []string{"stages", "steps", "hooks"} {
Expand Down

0 comments on commit cfeacb0

Please sign in to comment.