forked from TrueCloudLab/frostfs-node
[#932] adm: Prepare to move InitializeContext
to util
package
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
bee3741f4e
commit
b68f7be0b6
20 changed files with 277 additions and 270 deletions
|
@ -8,14 +8,14 @@ import (
|
|||
)
|
||||
|
||||
func updateContracts(cmd *cobra.Command, _ []string) error {
|
||||
wCtx, err := newInitializeContext(cmd, viper.GetViper())
|
||||
wCtx, err := NewInitializeContext(cmd, viper.GetViper())
|
||||
if err != nil {
|
||||
return fmt.Errorf("initialization error: %w", err)
|
||||
}
|
||||
|
||||
if err := wCtx.deployNNS(updateMethodName); err != nil {
|
||||
if err := deployNNS(wCtx, updateMethodName); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return wCtx.updateContracts()
|
||||
return updateContractsInternal(wCtx)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue