Module: check_mk
Branch: master
Commit: 9afbe5639172fa249a3ef2180d09a830b2d69d0d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9afbe5639172fa…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Fri Nov 30 14:57:26 2018 +0100
Make yapf happy again
Change-Id: Icc80a2c124aa6c23f523590d2f182833057bf893
---
inventory/dell_idrac_info | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/inventory/dell_idrac_info b/inventory/dell_idrac_info
index 3031189..b36c8fc 100644
--- a/inventory/dell_idrac_info
+++ b/inventory/dell_idrac_info
@@ -47,15 +47,15 @@ def inv_dell_idrac_info(info):
# been observed in the wild. More accurate appears to be
# mm/dd/yyyy or 0mm/dd/yyyy or mm/0dd/yyyy. The 0 represents a
# random 0 thrown in for good measure :/
- if bios_date[2] == "/" and bios_date[5] == "/": # mm/dd/yyyy
+ if bios_date[2] == "/" and bios_date[5] == "/": # mm/dd/yyyy
node['date'] = time.mktime(time.strptime(bios_date,
"%m/%d/%Y"))
- elif bios_date[3] == "/" and bios_date[6] == "/": # 0mm/dd/yyyy
+ elif bios_date[3] == "/" and bios_date[6] == "/": # 0mm/dd/yyyy
node['date'] = time.mktime(time.strptime(bios_date,
"0%m/%d/%Y"))
- elif bios_date[2] == "/" and bios_date[6] == "/": # mm/0dd/yyyy
+ elif bios_date[2] == "/" and bios_date[6] == "/": # mm/0dd/yyyy
node['date'] = time.mktime(time.strptime(bios_date,
"%m/0%d/%Y"))
- elif "/" not in bios_date[:8]: # In case of Dell devices following the MIB
+ elif "/" not in bios_date[:8]: # In case of Dell devices following the
MIB
node['date'] = time.mktime(time.strptime(bios_date[:8],
"%Y%m%d"))
- else: # We deliberately ignore any other broken formats that might exist.
+ else: # We deliberately ignore any other broken formats that might exist.
pass
node = inv_tree("hardware.storage.controller.")