Fixes per code review

This commit is contained in:
Justin Santa Barbara 2017-01-16 20:35:41 -05:00
parent 09cb9b654c
commit 9b3034402a
1 changed files with 0 additions and 14 deletions

View File

@ -700,20 +700,6 @@ func (u *UserDataConfiguration) ParseBool(key string) *bool {
return fi.Bool(false)
}
func (u *UserDataConfiguration) ParseInt64(key string) (*int64, error) {
s := u.Settings[key]
if s == "" {
return nil, nil
}
n, err := strconv.ParseInt(s, 10, 64)
if err != nil {
return nil, fmt.Errorf("error parsing key %q=%q", key, s)
}
return fi.Int64(n), nil
}
func (u *UserDataConfiguration) ParseCert(key string) (*fi.Certificate, error) {
s := u.Settings[key]
if s == "" {