Skip to content

Commit

Permalink
fixup! Create temboardui.prometheus module
Browse files Browse the repository at this point in the history
  • Loading branch information
bersace committed Jun 28, 2024
1 parent 059348b commit 8e7bc7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/temboardui/prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ def _setup_instances(self):
provisionner.inspect()

session = Session()
for (instance,) in session.execute(orm.Instances.all()):
for instance in session.execute(orm.Instances.all()):
if len(instance) == 1: # SQAlchemy 1.4+ returns a tuple
(instance,) = instance

if not instance.discover:
logger.debug("Skipping unreached instance %s.", instance)
continue
Expand Down

0 comments on commit 8e7bc7f

Please sign in to comment.