Skip to content

Commit

Permalink
done but weird error when validating whith jsonlint.com
Browse files Browse the repository at this point in the history
  • Loading branch information
Rehouma63 committed Aug 11, 2023
1 parent deba5da commit f0f72fb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sarracenia/sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -2147,7 +2147,8 @@ def dump(self):
print( "}},\n" )

print('\n\"nbroker summaries": {\n\n')
for h in self.brokers:
lengthSelfBroker = len(self.brokers)
for indexSelfBroker,h in enumerate(self.brokers):
if 'admin' in self.brokers[h]:
admin_url = self.brokers[h]['admin'].url
admin_urlstr = "%s://%s@%s" % ( admin_url.scheme, \
Expand All @@ -2172,8 +2173,10 @@ def dump(self):
if lengthBrokersQueues -1 > indexBrokersSummary:
print(',')
print(']')
if lengthSelfBroker -1 > indexSelfBroker:
print(',')

print('}\n\n\"Missing instances\" : { \n\n')
print('},\n\n\"Missing instances\" : { \n\n')
for instance in self.missing:
(c, cfg, i) = instance
print('\t\t\"%s\" : \"%s %d\",' % (c, cfg, i))
Expand Down

0 comments on commit f0f72fb

Please sign in to comment.