outposts: fix error during outpost disconnect
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
d55d44d664
commit
fceab788d2
|
@ -80,10 +80,10 @@ class OutpostConsumer(AuthJsonConsumer):
|
||||||
if self.channel_name in state.channel_ids:
|
if self.channel_name in state.channel_ids:
|
||||||
state.channel_ids.remove(self.channel_name)
|
state.channel_ids.remove(self.channel_name)
|
||||||
state.save()
|
state.save()
|
||||||
GAUGE_OUTPOSTS_CONNECTED.labels(
|
GAUGE_OUTPOSTS_CONNECTED.labels(
|
||||||
outpost=self.outpost.name,
|
outpost=self.outpost.name,
|
||||||
uid=self.last_uid,
|
uid=self.last_uid,
|
||||||
).dec()
|
).dec()
|
||||||
LOGGER.debug(
|
LOGGER.debug(
|
||||||
"removed outpost instance from cache",
|
"removed outpost instance from cache",
|
||||||
outpost=self.outpost,
|
outpost=self.outpost,
|
||||||
|
|
Reference in a new issue