Skip to content

Commit daf2f76

Browse files
committed
Fix the logic
1 parent 72b34b0 commit daf2f76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CloudConfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (cloudConfig CloudConfig) SaveWriteFiles(outputDir string) error {
3636
}
3737

3838
func ReadCloudConfigFrom(attachment MimeAttachment) (CloudConfig, error) {
39-
if !strings.Contains(attachment.ContentType, "text/cloud-config") ||
39+
if !strings.Contains(attachment.ContentType, "text/cloud-config") &&
4040
!strings.Contains(string(attachment.Content), "#cloud-config") {
4141
return CloudConfig{}, fmt.Errorf("not a cloud-config content type")
4242
}

0 commit comments

Comments
 (0)