|
46 | 46 | } |
47 | 47 |
|
48 | 48 | checkpoint_argument_spec_for_action_module = dict( |
49 | | - auto_publish_session=dict(type="bool"), |
| 49 | + auto_publish_session=dict(type="bool", default=False), |
50 | 50 | wait_for_task_timeout=dict(type="int", default=30), |
51 | 51 | version=dict(type="str"), |
52 | 52 | ) |
53 | 53 |
|
54 | 54 | checkpoint_argument_spec_for_objects = dict( |
55 | | - auto_publish_session=dict(type="bool"), |
| 55 | + auto_publish_session=dict(type="bool", default=False), |
56 | 56 | wait_for_task=dict(type="bool", default=True), |
57 | 57 | wait_for_task_timeout=dict(type="int", default=30), |
58 | 58 | state=dict(type="str", choices=["present", "absent"], default="present"), |
|
65 | 65 | wait_for_task=dict(type="bool", default=True), |
66 | 66 | wait_for_task_timeout=dict(type="int", default=30), |
67 | 67 | version=dict(type="str"), |
68 | | - auto_publish_session=dict(type="bool"), |
| 68 | + auto_publish_session=dict(type="bool", default=False), |
69 | 69 | ) |
70 | 70 |
|
71 | 71 | delete_params = [ |
|
76 | 76 | "rule-name", |
77 | 77 | "package", |
78 | 78 | "ignore-errors", |
79 | | - "ignore-warnings" |
| 79 | + "ignore-warnings", |
| 80 | + "gateway-uid" |
80 | 81 | ] |
81 | 82 |
|
82 | 83 | remove_from_set_payload = { |
@@ -304,6 +305,10 @@ def get_payload_from_parameters(params): |
304 | 305 | ): |
305 | 306 | parameter = "version" |
306 | 307 |
|
| 308 | + # message & syslog_facility are internally used by Ansible, so need to avoid param duplicity |
| 309 | + elif parameter == "login_message": |
| 310 | + parameter = "message" |
| 311 | + |
307 | 312 | payload[parameter.replace("_", "-")] = parameter_value |
308 | 313 |
|
309 | 314 | return payload |
@@ -579,7 +584,7 @@ def api_call_facts(module, api_call_object, api_call_object_plural_version): |
579 | 584 | False, |
580 | 585 | False, |
581 | 586 | ) |
582 | | - result = {api_call_object: response} |
| 587 | + result = {api_call_object.replace("-", "_"): response} |
583 | 588 | return result |
584 | 589 |
|
585 | 590 |
|
@@ -1431,12 +1436,12 @@ def api_call_facts_for_rule( |
1431 | 1436 |
|
1432 | 1437 |
|
1433 | 1438 | # The code from here till EOF will be deprecated when Rikis' modules will be deprecated |
1434 | | -checkpoint_argument_spec = dict( |
1435 | | - auto_publish_session=dict(type="bool", default=True), |
1436 | | - policy_package=dict(type="str", default="standard"), |
1437 | | - auto_install_policy=dict(type="bool", default=True), |
1438 | | - targets=dict(type="list"), |
1439 | | -) |
| 1439 | +# checkpoint_argument_spec = dict( |
| 1440 | +# auto_publish_session=dict(type="bool", default=True), |
| 1441 | +# policy_package=dict(type="str", default="standard"), |
| 1442 | +# auto_install_policy=dict(type="bool", default=True), |
| 1443 | +# targets=dict(type="list"), |
| 1444 | +# ) |
1440 | 1445 |
|
1441 | 1446 |
|
1442 | 1447 | def publish(connection, uid=None): |
|
0 commit comments