fix config save
This commit is contained in:
parent
e7af7ce2fd
commit
6fcf8b421c
@ -197,7 +197,7 @@ func (c *Config) Save() error {
|
|||||||
|
|
||||||
r := pretty.Pretty(b)
|
r := pretty.Pretty(b)
|
||||||
|
|
||||||
f, err := os.Open(*cfgFile)
|
f, err := os.Create(*cfgFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.WithFields(log.Fields{"error": err, "call": "os.Open"}).Errorf("")
|
log.WithFields(log.Fields{"error": err, "call": "os.Open"}).Errorf("")
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user