Refactor to use get_month_start_timestamp directly
Change-Id: If1839723fce56c2007b087566b02af94e18348cf
This commit is contained in:
parent
1f21d7be4e
commit
9be0827fa2
|
@ -183,8 +183,7 @@ def refresh_stevedore(namespace=None):
|
|||
|
||||
def check_time_state(timestamp=None, period=0, wait_time=0):
|
||||
if not timestamp:
|
||||
month_start = get_month_start()
|
||||
return dt2ts(month_start)
|
||||
return get_month_start_timestamp()
|
||||
|
||||
now = utcnow_ts()
|
||||
next_timestamp = timestamp + period
|
||||
|
|
Loading…
Reference in New Issue