forked from IBM-Blockchain/ansible-collection
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove operation parameter from peer_channel module (resolves IBM-Blo…
…ckchain#269) The `operation` parameter in the `peer_channel` module only has one option, `join`. Remove the `operation` parameter from this module and make it like any other Ansible module by having a `state` parameter instead. When `state` is set to `present`, ensure that the peer is joined into the specified channel. When `state` is set to `absent`, ensure that the peer is not joined into the specified channel. Because peers can't currently leave a channel, attempting this will throw an error, but this is on the Hyperledger Fabric roadmap and can be added at a later date. These changes are compatible because any existing `operation` parameters will be ignored, and the `state` parameter defaults to `present`, preserving existing behaviour. Signed-off-by: Simon Stone <[email protected]>
- Loading branch information
Simon Stone
committed
Mar 25, 2021
1 parent
35c870b
commit 0c01ffa
Showing
1 changed file
with
99 additions
and
59 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