[#979] adm/subnet: Always set group ID parameter in client cmds

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-12-01 16:48:24 +03:00 committed by LeL
parent 3550ed9fe4
commit 3fcd7bc948

View file

@ -585,9 +585,6 @@ func manageSubnetClients(cmd *cobra.Command, rm bool) error {
return fmt.Errorf("marshal client ID: %w", err) return fmt.Errorf("marshal client ID: %w", err)
} }
var prm morphsubnet.ManageClientsPrm
if viper.GetBool(flagSubnetAdminClient) {
// read group ID and encode it // read group ID and encode it
var groupID internal.SubnetClientGroupID var groupID internal.SubnetClientGroupID
@ -601,9 +598,9 @@ func manageSubnetClients(cmd *cobra.Command, rm bool) error {
return fmt.Errorf("marshal group ID: %w", err) return fmt.Errorf("marshal group ID: %w", err)
} }
prm.SetGroup(binGroupID) var prm morphsubnet.ManageClientsPrm
}
prm.SetGroup(binGroupID)
prm.SetSubnet(binID) prm.SetSubnet(binID)
prm.SetClient(binClientID) prm.SetClient(binClientID)