Hi!
When executing an Ansible task for check_point.mgmt.cp_mgmt_package with
- name: set policy/package
check_point.mgmt.cp_mgmt_package:
name: default-policy
access: true
access_layers:
add:
- name: default-layer
position: 1
it exits with an error
FAILED! => {"changed": false, "msg": "Checkpoint device returned error 400 with message {u'message': u'Unrecognized parameter [access-layers]', u'code': u'generic_err_invalid_parameter_name'} Unpublished changes were discarded"
Am I doing something wrong? I think the ansible task is used correctly. (Any other CP-related tasks are working fine.)
I recognise that the task uses 'access_layers' with an underscore while the error message contains 'access-layers' with a minus. The ansible documentation and examples use the underscore while the corresponding mgmt-api uses the minus. Is this a bug/typo?