The returned payload from rgw has is_master as a boolean. By having master as a string it would always report a change and try to modify the zonegroup.
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
name = module.params.get('name')
state = module.params.get('state')
endpoints = module.params.get('endpoints')
- master = str(module.params.get('master')).lower()
+ master = module.params.get('master')
if module.check_mode:
module.exit_json(
realm = json.loads(_out)
current = {
'endpoints': zonegroup['endpoints'],
- 'master': zonegroup.get('is_master', 'false'),
+ 'master': zonegroup.get('is_master', False),
'realm_id': zonegroup['realm_id']
}
asked = {