Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cli/repair/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func rewriteConf(topologyConfPath string, topologyConf *TopologyConfType) ([]com
if err != nil {
return nil, fmt.Errorf("Failed to open a new config: %s", err)
}
defer confFile.Close()

if _, err := confFile.Write(newConfContent); err != nil {
return nil, fmt.Errorf("Failed to write a new config: %s", err)
Expand Down
1 change: 1 addition & 0 deletions cli/replicasets/save.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func Save(ctx *context.Ctx, args []string) error {
if err != nil {
return fmt.Errorf("Failed to open replicasets config for writing: %s", err)
}
defer confFile.Close()

if _, err := confFile.Write(newConfContent); err != nil {
return fmt.Errorf("Failed to write new replicasets config: %s", err)
Expand Down
Loading