diff --git a/plugins/modules/panos_active_in_ha.py b/plugins/modules/panos_active_in_ha.py index 3a7e42aa9..5d10c1d7d 100644 --- a/plugins/modules/panos_active_in_ha.py +++ b/plugins/modules/panos_active_in_ha.py @@ -53,6 +53,12 @@ node's current state in an HA pair. Can be useful when working with partially upgraded nodes. Use with caution. type: bool default: false + ignore_non_functional: + description: + - Use with caution, when set to `True` will ignore if device state is `non-functional` on one of the nodes. Helpful + when verifying a state of a partially upgraded HA pair with vmseries plugin version mismatch. + type: bool + default: false # """ EXAMPLES = """ @@ -112,6 +118,7 @@ def main(): argument_spec=dict( force_fail=dict(type="bool", default=False), skip_config_sync=dict(type="bool", default=False), + ignore_non_functional=dict(type="bool", default=False), ), panorama_error="This is a firewall only module", ) @@ -123,7 +130,8 @@ def main(): firewall = FirewallProxy(firewall=helper.get_pandevice_parent(module)) is_active = CheckFirewall(firewall).check_is_ha_active( - skip_config_sync=module.params["skip_config_sync"] + skip_config_sync=module.params["skip_config_sync"], + ignore_non_functional=module.params["ignore_non_functional"], ) if module.params["force_fail"]: