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

pull/7336/head
Don Kuntz 7 years ago
parent 04de86d211
commit b0589c9643

@ -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)
}
}

Loading…
Cancel
Save