mirror of
https://github.com/xcat2/confluent.git
synced 2026-08-03 16:07:00 +00:00
Remove microseconds from the last updated timestamp
This commit is contained in:
@@ -476,7 +476,7 @@ async def handle_request(req, make_response, mimetype):
|
||||
if statusdetail:
|
||||
stateupdate['deployment.state_detail'] = statusdetail
|
||||
if stateupdate:
|
||||
stateupdate['deployment.state_last_updated'] = datetime.datetime.now().astimezone().isoformat()
|
||||
stateupdate['deployment.state_last_updated'] = datetime.datetime.now().astimezone().replace(microsecond=0).isoformat()
|
||||
await cfg.set_node_attributes({nodename: stateupdate})
|
||||
if 'status' not in update and stateupdate:
|
||||
mrsp = await make_response(mimetype, 200, 'Ok')
|
||||
|
||||
Reference in New Issue
Block a user