Skip to content

Commit

Permalink
ovirt - fix the credentials folder permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Roy Golan <[email protected]>
  • Loading branch information
rgolangh committed Mar 29, 2020
1 parent 6aea75e commit 6ec1d00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/asset/installconfig/ovirt/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ func (c *Config) Save() error {
}

path := discoverPath()
err = os.MkdirAll(filepath.Dir(path), os.FileMode(700))
err = os.MkdirAll(filepath.Dir(path), 0700)
if err != nil {
return err
}
return ioutil.WriteFile(path, out, os.FileMode(0600))
return ioutil.WriteFile(path, out, 0600)
}

0 comments on commit 6ec1d00

Please sign in to comment.