Change spelling mistakes
Change-Id: I2439ce264bd9a8566a2b88c1d8af5d3537814ecc
This commit is contained in:
parent
6f2a20d57b
commit
424e9b35fe
@ -64,7 +64,7 @@ class SensorNotification(plugin.NotificationBase):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_targets(conf):
|
def get_targets(conf):
|
||||||
"""oslo.messaging.TargetS for this this plugin."""
|
"""oslo.messaging.TargetS for this plugin."""
|
||||||
return [messaging.Target(topic=topic,
|
return [messaging.Target(topic=topic,
|
||||||
exchange=conf.ironic_exchange)
|
exchange=conf.ironic_exchange)
|
||||||
for topic in conf.notification_topics]
|
for topic in conf.notification_topics]
|
||||||
|
@ -308,7 +308,7 @@ class Connection(base.Connection):
|
|||||||
.delete())
|
.delete())
|
||||||
|
|
||||||
rows = sample_q.delete()
|
rows = sample_q.delete()
|
||||||
# remove Meter defintions with no matching samples
|
# remove Meter definitions with no matching samples
|
||||||
(session.query(models.Meter)
|
(session.query(models.Meter)
|
||||||
.filter(~models.Meter.samples.any())
|
.filter(~models.Meter.samples.any())
|
||||||
.delete(synchronize_session='fetch'))
|
.delete(synchronize_session='fetch'))
|
||||||
|
Loading…
Reference in New Issue
Block a user