Fix regression introduced in 7f1e4ddf690087097e1ac5a6f925e693f277d7b4, fix flake8

This commit is contained in:
f3flight 2016-08-02 12:20:17 +00:00
parent 201ed9843b
commit a339a2614e
2 changed files with 7 additions and 1 deletions

View File

@ -43,6 +43,12 @@ try:
except:
FuelClient = None
try:
from fuelclient.client import logger
logger.handlers = []
except:
pass
class Node(object):
ckey = 'cmds'
@ -326,7 +332,7 @@ class Node(object):
for item in self.logs:
start_str = None
if 'start' in item or hasattr(self,'logs_days'):
if 'start' in item or hasattr(self, 'logs_days'):
if hasattr(self, 'logs_days') and 'start' not in item:
start = self.logs_days
else: