From c93e9f565e84ff10f551eaed35294373fae484d2 Mon Sep 17 00:00:00 2001 From: Simon Dodsley Date: Tue, 8 Oct 2024 15:42:41 -0400 Subject: [PATCH] Fix audits issue with no start time --- changelogs/fragments/649_audits.yaml | 2 ++ plugins/modules/purefa_audits.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/649_audits.yaml diff --git a/changelogs/fragments/649_audits.yaml b/changelogs/fragments/649_audits.yaml new file mode 100644 index 00000000..0df72f7f --- /dev/null +++ b/changelogs/fragments/649_audits.yaml @@ -0,0 +1,2 @@ +bugfixes: + - purefa_audits - Fix issue when ``start`` parameter not supplied diff --git a/plugins/modules/purefa_audits.py b/plugins/modules/purefa_audits.py index fc7e1667..599c0342 100644 --- a/plugins/modules/purefa_audits.py +++ b/plugins/modules/purefa_audits.py @@ -82,7 +82,7 @@ def _get_filter_string(module, timezone): filter_string = "" - if module.params["start"] != "0": + if module.params["start"] and module.params["start"] != "0": start = module.params["start"] + " " + timezone start_timestamp = int( 1000