mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 21:35:23 +02:00
fix(teams): fix data-race in teamCreate() BE-11210 (#12195)
This commit is contained in:
parent
80e607ab30
commit
7a176cf284
6 changed files with 161 additions and 20 deletions
|
@ -389,7 +389,6 @@ type storeExport struct {
|
|||
}
|
||||
|
||||
func (store *Store) Export(filename string) (err error) {
|
||||
|
||||
backup := storeExport{}
|
||||
|
||||
if c, err := store.CustomTemplate().ReadAll(); err != nil {
|
||||
|
@ -593,6 +592,7 @@ func (store *Store) Export(filename string) (err error) {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return os.WriteFile(filename, b, 0600)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue