cmd/storagenode: fix identity flag for graceful exit commands

Resolves https://github.com/storj/customer-issues/issues/780
Resolves https://github.com/storj/storj/issues/5807

Change-Id: I0af2b14f5b12ddc1e7a09afb2cf5ccf025f53502
This commit is contained in:
Clement Sam 2023-05-23 17:21:11 +00:00 committed by Storj Robot
parent 98591f34f9
commit bf8072d3f3

View File

@ -45,7 +45,7 @@ func newGracefulExitInitCmd(f *Factory) *cobra.Command {
Annotations: map[string]string{"type": "helper"},
}
process.Bind(cmd, &cfg, f.Defaults, cfgstruct.ConfDir(f.ConfDir))
process.Bind(cmd, &cfg, f.Defaults, cfgstruct.ConfDir(f.ConfDir), cfgstruct.IdentityDir(f.IdentityDir))
return cmd
}
@ -61,7 +61,7 @@ func newGracefulExitStatusCmd(f *Factory) *cobra.Command {
Annotations: map[string]string{"type": "helper"},
}
process.Bind(cmd, &cfg, f.Defaults, cfgstruct.ConfDir(f.ConfDir))
process.Bind(cmd, &cfg, f.Defaults, cfgstruct.ConfDir(f.ConfDir), cfgstruct.IdentityDir(f.IdentityDir))
return cmd
}