Skip to content

Commit

Permalink
Fix pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
algorys committed Jan 29, 2017
1 parent cc84c07 commit d75bc3e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions alignak_app/widgets/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,16 @@ def check_status(self):
total_daemons += 1

if not cur_bad_daemons:
self.daemons_labels[daemon]['icon'].setPixmap(QPixmap(get_image_path('valid')))
self.daemons_labels[daemon]['icon'].setPixmap(
QPixmap(get_image_path('valid'))
)
self.daemons_labels[daemon]['icon'].setToolTip('All %ss are alive ' % daemon)
self.daemons_labels[daemon]['label'].setToolTip('All %ss are alive ' % daemon)

else:
self.daemons_labels[daemon]['icon'].setPixmap(QPixmap(get_image_path('unvalid')))
self.daemons_labels[daemon]['icon'].setPixmap(
QPixmap(get_image_path('unvalid'))
)
self.daemons_labels[daemon]['icon'].setToolTip(daemon_message)
self.daemons_labels[daemon]['label'].setToolTip(daemon_message)
else:
Expand Down

0 comments on commit d75bc3e

Please sign in to comment.