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.
The
operation
parameter in thepeer_channel
module only has one option,join
.Remove the
operation
parameter from this module and make it like any other Ansible module by having astate
parameter instead. Whenstate
is set topresent
, ensure that the peer is joined into the specified channel. Whenstate
is set toabsent
, 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 thestate
parameter defaults topresent
, preserving existing behaviour.Signed-off-by: Simon Stone sstone1@uk.ibm.com