-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Use Principal in RemoveNodeOperatorsPayload, instead of Vec…
…<u8> (#3386) The objective in this PR is to make the ic-admin (and potentially other) output prettier by showing the list of operators in `RemoveNodeOperatorsPayload` as principals (strings) instead of Vec[u8]. In result: before: ```bash ic-admin propose-to-remove-node-operators --nns-urls https://ic0.app xla4b-4vmw4-db4cm-qg63h-6jvj6-zm2nj-von5y-7dx2k-calku-e6hke-wae --dry-run --summary "Remove obsolete node operator" [...] Title: Remove node operators with principal ids: ["xla4b"] Summary: Remove obsolete node operator Payload: RemoveNodeOperatorsPayload { node_operators_to_remove: [ [ 172, 183, 6, 30, 9, 144, 55, 182, 127, 38, 169, 246, 89, 166, 166, 174, 111, 113, 241, 223, 74, 16, 22, 170, 19, 199, 81, 44, 2, ], ], } ``` With this change: ``` ic-admin propose-to-remove-node-operators --nns-urls https://ic0.app xla4b-4vmw4-db4cm-qg63h-6jvj6-zm2nj-von5y-7dx2k-calku-e6hke-wae --dry-run --summary "Remove obsolete node operator" [...] Title: Remove node operators with principal ids: ["xla4b"] Summary: Remove obsolete node operator Payload: RemoveNodeOperatorsPayload { node_operators_to_remove: [], node_operator_principals_to_remove: Some( NodeOperatorPrincipals { principals: [ xla4b-4vmw4-db4cm-qg63h-6jvj6-zm2nj-von5y-7dx2k-calku-e6hke-wae, ], }, ), } ``` ### Changes - Removed `RemoveNodeOperatorsPayload` from `node_operator.proto`. - Moved `RemoveNodeOperatorsPayload` definition into `do_remove_node_operators.rs`. --------- Co-authored-by: Max Summe <maximilian.summe@dfinity.org>
- Loading branch information
1 parent
cf52a50
commit 6974885
Showing
8 changed files
with
84 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters