]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
get_binary_name should returns strings without spaces
authorCedric Brandily <zzelle@gmail.com>
Fri, 19 Dec 2014 14:05:53 +0000 (15:05 +0100)
committerCedric Brandily <zzelle@gmail.com>
Tue, 23 Dec 2014 18:50:08 +0000 (18:50 +0000)
commit0937dca14b1f60bdf3d4377ee305d41a1721f153
tree21626181cdd20802515bd63221bc19a428142bef
parent481d366298c83733f2bb6e897015bc2a382ff73b
get_binary_name should returns strings without spaces

Iptables does not support chain names with spaces. It implies
get_binary_name should return strings without spaces (they are used as
chain name prefix). But currently 'python -m unittest $module' implies
spaces in get_binary_name() result, it disallows to use it when $module
is a functional test module. This change replaces spaces with
underscores in get_binary_name results.

Change-Id: Ie7c8518b92be46a4eea4e9345713fdeba844126d
Closes-Bug: #1404250
neutron/agent/linux/iptables_manager.py
neutron/tests/unit/test_iptables_manager.py