2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Fix indentation of date conversion

The conversion was not checking each element.
This commit is contained in:
Jarrod Johnson 2020-01-29 17:08:00 -05:00
parent 8d0028a1de
commit c99d01dffc

View File

@ -1505,8 +1505,8 @@ class Firmware(ConfluentMessage):
for component in datum:
for field in datum[component]:
tdatum = datum[component]
if isinstance(tdatum[field], datetime):
tdatum[field] = tdatum[field].strftime('%Y-%m-%dT%H:%M:%S')
if isinstance(tdatum[field], datetime):
tdatum[field] = tdatum[field].strftime('%Y-%m-%dT%H:%M:%S')
self.myargs = (data, name)
self.notnode = name is None
self.desc = 'Firmware information'