NSX|v unit tests: fix fake_vcns get_section_id

The fake get_section_id resets the current list of sections, which is wrong

Change-Id: I07db7c2ab383ba9ddeb6439de142be6405f1e81d
This commit is contained in:
Adit Sarfaty 2016-06-20 14:22:49 +03:00
parent bd03392d88
commit 85c03d3e50
1 changed files with 0 additions and 1 deletions

View File

@ -991,7 +991,6 @@ class FakeVcns(object):
return (headers, response)
def get_section_id(self, section_name):
self._sections = {'section_ids': 0, 'rule_ids': 0, 'names': set()}
for k, v in self._sections.items():
if (k not in ('section_ids', 'rule_ids', 'names')
and v['name'] == section_name):