Merge pull request #4614 from guggero/printmacaroon-fix
lncli: print all permission actions
This commit is contained in:
1 file changed
+6
-2
@@ -399,8 +399,12 @@ func printMacaroon(ctx *cli.Context) error {
|
|||||||
content.Caveats = append(content.Caveats, string(caveat.Id))
|
content.Caveats = append(content.Caveats, string(caveat.Id))
|
||||||
}
|
}
|
||||||
for _, op := range decodedID.Ops {
|
for _, op := range decodedID.Ops {
|
||||||
permission := fmt.Sprintf("%s:%s", op.Entity, op.Actions[0])
|
for _, action := range op.Actions {
|
||||||
content.Permissions = append(content.Permissions, permission)
|
permission := fmt.Sprintf("%s:%s", op.Entity, action)
|
||||||
|
content.Permissions = append(
|
||||||
|
content.Permissions, permission,
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printJSON(content)
|
printJSON(content)
|
||||||
|
|||||||
Reference in new issue
Block a user