forked from TrueCloudLab/frostfs-rest-gw
[#36] Add route to put storage group
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
ba464ddfa3
commit
e5b9fd5f5a
10 changed files with 950 additions and 0 deletions
|
@ -413,6 +413,10 @@ func createContainer(ctx context.Context, p *pool.Pool, stoken session.Container
|
|||
container.WriteDomain(&cnr, domain)
|
||||
}
|
||||
|
||||
if err = pool.SyncContainerWithNetwork(ctx, &cnr, p); err != nil {
|
||||
return cid.ID{}, fmt.Errorf("sync container with network: %w", err)
|
||||
}
|
||||
|
||||
var prm pool.PrmContainerPut
|
||||
prm.SetContainer(cnr)
|
||||
prm.WithinSession(stoken)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue