neutron/neutron/pecan_wsgi/controllers
Max 6e6166bda4 Replace assert to raise AssertionError
This patch is a fix for the issue B101 assert_used found by bandit
scanner:
https://docs.openstack.org/bandit/latest/plugins/b101_assert_used.html
As assert functionality could be turned off by the -O option for python
interpreter, assert statements were replaced to raise AssertionError.

The main reasoning for that is rest code after assert could be not
ready for values that assert filters.

Change-Id: I92a871b1b496c96c0c76cb37e4dda51bfc007e38
Related-Bug: #1759250
2018-04-10 16:01:48 +04:00
..
__init__.py Pecan: Handle member actions 2016-08-30 00:34:02 -05:00
extensions.py Pecan: Get loaded by paste deploy 2017-02-17 14:54:27 -06:00
quota.py consume neutron-lib resources attr map 2018-03-09 13:37:28 -07:00
resource.py Merge "Pecan: Add missing emulated bulk create method" 2017-09-12 01:01:44 +00:00
root.py Replace assert to raise AssertionError 2018-04-10 16:01:48 +04:00
utils.py consume neutron-lib resources attr map 2018-03-09 13:37:28 -07:00