adm: Add dump policy #783

Merged
fyrchik merged 1 commit from achuprov/frostfs-node:dump-police into master 2023-11-06 06:43:58 +00:00
Member

Close #716

Signed-off-by: Alexander Chuprov a.chuprov@yadro.com

Close #716 Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
achuprov force-pushed dump-police from 0ef29c4fbe to ac463a4bd2 2023-11-02 12:19:15 +00:00 Compare
fyrchik requested review from storage-core-committers 2023-11-02 12:20:29 +00:00
fyrchik reviewed 2023-11-02 12:21:06 +00:00
@ -147,2 +147,4 @@
}
dumpPolicy = &cobra.Command{
Use: "dump-police",
Owner

s/police/policy/

s/police/policy/
Author
Member

fixed × 3x

fixed × 3x
fyrchik marked this conversation as resolved
fyrchik reviewed 2023-11-02 12:21:09 +00:00
@ -147,2 +147,4 @@
}
dumpPolicy = &cobra.Command{
Use: "dump-police",
Owner

s/police/policy/

s/police/policy/
fyrchik marked this conversation as resolved
fyrchik reviewed 2023-11-02 12:21:13 +00:00
@ -147,2 +147,4 @@
}
dumpPolicy = &cobra.Command{
Use: "dump-police",
Owner

s/police/policy/

s/police/policy/
fyrchik marked this conversation as resolved
fyrchik approved these changes 2023-11-02 12:21:24 +00:00
achuprov force-pushed dump-police from ac463a4bd2 to aafe6206b0 2023-11-02 12:34:43 +00:00 Compare
achuprov requested review from storage-core-committers 2023-11-02 12:36:17 +00:00
achuprov requested review from storage-core-developers 2023-11-02 12:36:19 +00:00
achuprov force-pushed dump-police from aafe6206b0 to 5f1d0d84dd 2023-11-02 12:39:17 +00:00 Compare
aarifullin reviewed 2023-11-02 12:54:23 +00:00
@ -55,0 +59,4 @@
func dumpPolicyCmd(cmd *cobra.Command, _ []string) error {
c, err := getN3Client(viper.GetViper())
if err != nil {
return fmt.Errorf("can't create N3 client: %w", err)
Member

I don't mind if you return the error here (and below). But I also see you pass cmd *cobra.Command to this method.

How about to consider using commonCmd.ExitOnErr(cmd, "your txt", err) . This allows to exit the program and you do not need to check if err != nil :)

I don't mind if you return the error here (and below). But I also see you pass `cmd *cobra.Command` to this method. How about to consider using `commonCmd.ExitOnErr(cmd, "your txt", err)` . This allows to exit the program and you do not need to check `if err != nil` :)
Author
Member

fixed

fixed
achuprov force-pushed dump-police from 5f1d0d84dd to 87d6d8890f 2023-11-02 13:21:23 +00:00 Compare
dstepanov-yadro approved these changes 2023-11-02 14:01:38 +00:00
Member

It is better to use output snippets, instead of images in the description.

It is better to use output snippets, instead of images in the description.
acid-ant approved these changes 2023-11-03 08:15:32 +00:00
fyrchik merged commit cae50ecb21 into master 2023-11-06 06:43:58 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-developers
No milestone
No project
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#783
No description provided.