Skip to content

Commit

Permalink
Fix time span values (#728)
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Hellen <ianhelle@microsoft.com>
  • Loading branch information
FlorianBracq and ianhelle committed Oct 26, 2023
1 parent da97196 commit 56e912e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions msticpy/data/drivers/azure_monitor_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,11 +477,9 @@ def _get_time_span_value(self, **kwargs):
"""Return the timespan for the query API call."""
default_time_params = kwargs.get("default_time_params", False)
time_params = kwargs.get("time_span", {})
if (
default_time_params
or "start" not in time_params
or "end" not in time_params
):
start = time_params.get("start")
end = time_params.get("end")
if default_time_params or start is None or end is None:
time_span_value = None
logger.info("No time parameters supplied.")
else:
Expand Down

0 comments on commit 56e912e

Please sign in to comment.