|
@@ -153,12 +153,17 @@ def ffpb_rolloutstatus(bot, trigger):
|
|
|
bot.reply('!rollout-status list <version>')
|
|
|
return
|
|
|
|
|
|
+ list_inactive = 0
|
|
|
result = {'stable': [], 'testing': []}
|
|
|
for item in nodes:
|
|
|
release = item.get('firmware')
|
|
|
if release != list_nodes:
|
|
|
continue
|
|
|
|
|
|
+ if item.get('status') not in ['active', 'stale']:
|
|
|
+ list_inactive += 1
|
|
|
+ continue
|
|
|
+
|
|
|
name = item.get('name', item.get('node_id'))
|
|
|
branch = item.get('autoupdater')
|
|
|
if branch in result:
|
|
@@ -182,6 +187,11 @@ def ffpb_rolloutstatus(bot, trigger):
|
|
|
count=len(nodes),
|
|
|
nodes=','.join(nodes),
|
|
|
))
|
|
|
+ if list_inactive > 0:
|
|
|
+ bot.say('Zudem wurden {count} inaktive/offline Knoten mit Version {version} gezählt.'.format(
|
|
|
+ count=list_inactive,
|
|
|
+ version=list_nodes,
|
|
|
+ ))
|
|
|
|
|
|
# respond to the user
|
|
|
return
|