Skip to content

Commit

Permalink
Fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
mohierf committed Mar 17, 2017
1 parent 579e2db commit 6d7a86e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion alignak/objects/schedulingitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -2696,7 +2696,6 @@ def acknowledge_problem(self, notification_period, hosts, services, sticky, noti
:return: None | alignak.comment.Comment
"""
comm = None
print("Ack: %s / %s / %s" % (self, self.is_problem, self.in_scheduled_downtime))
logger.debug("Acknowledge requested for %s %s.", self.my_type, self.get_name())

if self.state != self.ok_up:
Expand Down
4 changes: 2 additions & 2 deletions alignak/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ def scatter_master_notifications(self):
self.find_item_by_id(getattr(item, "host", None))
)
for notif in childnotifs:
logger.debug(" - child notification: %s" % notif)
logger.debug(" - child notification: %s", notif)
notif.status = 'scheduled'
self.add(notif) # this will send a brok

Expand Down Expand Up @@ -1739,7 +1739,7 @@ def get_new_actions(self):
# ask for service and hosts their next check
for elt in self.iter_hosts_and_services():
for act in elt.actions:
logger.debug("Got a new action for %s: %s" % (elt, act))
logger.debug("Got a new action for %s: %s", elt, act)
self.add(act)
# We take all, we can clear it
elt.actions = []
Expand Down

0 comments on commit 6d7a86e

Please sign in to comment.