def present(module, result, existing_config): payload = utils.build_json("jwt-authorization", module.params, AVAILABLE_PROPERTIES) change_results = report_changes(module, result, existing_config, payload) if module.check_mode: return change_results elif not existing_config: return create(module, result, payload) elif existing_config and change_results.get('changed'): return update(module, result, existing_config, payload) return result
def present(module, result, existing_config): payload = utils.build_json("stat", module.params, AVAILABLE_PROPERTIES) change_results = report_changes(module, result, existing_config, payload) if module.check_mode: return change_results return update(module, result, existing_config, payload)