provider/aws: Fix error message returned when an invalid SSM document type is provided. The original error appears to have been copied from the CodeBuild resource and provides incorrect information about valid types.

This commit is contained in:
Eric Westfall 2017-02-24 22:34:09 -05:00 committed by Paul Stack
parent f1be6cbf6e
commit 72da290e1d
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ func validateAwsSSMDocumentType(v interface{}, k string) (ws []string, errors []
}
if !types[value] {
errors = append(errors, fmt.Errorf("CodeBuild: Arifacts Namespace Type can only be NONE / BUILD_ID"))
errors = append(errors, fmt.Errorf("Document type %s is invalid. Valid types are Command, Policy or Automation", value))
}
return
}