Append underlying error to output when FixerAmazonPrivateIP cannot parse the value of ssh_private_ip

This commit is contained in:
Don Kuntz 2019-02-25 14:20:14 -06:00
parent 04de86d211
commit b0589c9643
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ func (FixerAmazonPrivateIP) Fix(input map[string]interface{}) (map[string]interf
var err error
privateIP, err = strconv.ParseBool(privateIPi.(string))
if err != nil {
return nil, fmt.Errorf("ssh_private_ip is not a boolean")
return nil, fmt.Errorf("ssh_private_ip is not a boolean, %s", err)
}
}