Declare vpn client option in pipelib

Due to some import refactoring, nova.network.manager isn't always
imported when running pipelib commands, so using the cnt_vpn_clients
option fails. A failing test could not be added because our testing
code imports nova.network.manager so the code config option always
exists in testing.

Fixes bug 1069573

Change-Id: I92b702556bfef2610b86a952dd6f9207fbab102a
(cherry picked from commit ae6920fb6b)
This commit is contained in:
Vishvananda Ishaya 2012-10-22 10:11:08 -07:00
parent 197398fdf6
commit 69663ee1b3
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ cloudpipe_opts = [
help=_('Netmask to push into openvpn config')),
]
flags.DECLARE('cnt_vpn_clients', 'nova.network.manager')
FLAGS = flags.FLAGS
FLAGS.register_opts(cloudpipe_opts)