Skip to content

Commit

Permalink
drivers/amazonec2: logs userdata file error
Browse files Browse the repository at this point in the history
Signed-off-by: André Carvalho <[email protected]>
  • Loading branch information
andrestc committed Jul 3, 2017
1 parent d8dd388 commit 73ac7f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/amazonec2/amazonec2.go
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ func (d *Driver) Base64UserData() (userdata string, err error) {
if d.UserDataFile != "" {
buf, ioerr := ioutil.ReadFile(d.UserDataFile)
if ioerr != nil {
log.Warnf("failed to read user data file %q: %s", d.UserDataFile, ioerr)
err = errorReadingUserData
return
}
Expand Down

0 comments on commit 73ac7f1

Please sign in to comment.