mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl: slightly enhance output of role revoke-permission
This commit is contained in:
parent
8111e0f7dc
commit
0173564122
@ -206,5 +206,9 @@ func roleRevokePermissionCommandFunc(cmd *cobra.Command, args []string) {
|
|||||||
ExitWithError(ExitError, err)
|
ExitWithError(ExitError, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("Permission of key %s is revoked from role %s\n", args[1], args[0])
|
if len(rangeEnd) == 0 {
|
||||||
|
fmt.Printf("Permission of key %s is revoked from role %s\n", args[1], args[0])
|
||||||
|
} else {
|
||||||
|
fmt.Printf("Permission of range [%s, %s) is revoked from role %s\n", args[1], rangeEnd, args[0])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user