Skip to content

Commit

Permalink
Fix audits issue with no start time
Browse files Browse the repository at this point in the history
  • Loading branch information
sdodsley committed Oct 8, 2024
1 parent fee3d18 commit c93e9f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/649_audits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- purefa_audits - Fix issue when ``start`` parameter not supplied
2 changes: 1 addition & 1 deletion plugins/modules/purefa_audits.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c93e9f5

Please sign in to comment.