Skip to content

Commit

Permalink
Merge pull request #236 from ryan-talley/fix-test-indexing
Browse files Browse the repository at this point in the history
Fixed test data indexing.
  • Loading branch information
sjberman committed Jul 11, 2017
2 parents 0a2111a + 5d63235 commit 9051e48
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/bigipconfigdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,10 +533,11 @@ def _do_reset(self):
test_data = {}
app_count = 0
backend_count = 0
for service in config['virtualServers']:
for service in config['resources'][
'virtualServers']:
app_count += 1
backends = 0
for pool in config['pools']:
for pool in config['resources']['pools']:
if pool['name'] == service['name']:
backends = len(pool['poolMemberAddrs'])
break
Expand Down

0 comments on commit 9051e48

Please sign in to comment.