mirror of https://github.com/k3s-io/k3s
remove []byte trans, handle func error
parent
7cc0110081
commit
24869ddf21
|
@ -197,7 +197,7 @@ func getPrivateRegistries(ctx context.Context, cfg *config.Node) (*templates.Reg
|
|||
return nil, err
|
||||
}
|
||||
logrus.Infof("Using registry config file at %s", cfg.AgentConfig.PrivateRegistry)
|
||||
if err := yaml.Unmarshal([]byte(privRegistryFile), &privRegistries); err != nil {
|
||||
if err := yaml.Unmarshal(privRegistryFile, &privRegistries); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return privRegistries, nil
|
||||
|
|
|
@ -246,8 +246,8 @@ func (entry *Entry) Del() error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
entry.Set.Parent.Save()
|
||||
return nil
|
||||
|
||||
return entry.Set.Parent.Save()
|
||||
}
|
||||
|
||||
// Test wether an entry is in a set or not. Exit status number is zero if the
|
||||
|
|
Loading…
Reference in New Issue