]> xenbits.xensource.com Git - osstest/openstack-nova.git/commitdiff
Fix nova-serialproxy when registering cli options
authorLudovic Beliveau <ludovic.beliveau@windriver.com>
Tue, 6 Dec 2016 16:42:37 +0000 (11:42 -0500)
committerLudovic Beliveau <ludovic.beliveau@windriver.com>
Wed, 7 Dec 2016 13:51:28 +0000 (08:51 -0500)
In latest devstack, nova-serialproxy fails to start because it crashed
when it tries to register the cli options.

The issue is that it tried to register an array of options by invoking
conf.register_cli_opt(), when multiple options need to be register
through conf.register_cli_opts().

Change-Id: Icb09f849290b78b5dd73c3c96a13ade02492ba3a
Closes-Bug: #1647784

nova/conf/serial_console.py

index f8e8d15bc5f3550544476a1100326e36917f0584..c173049b9c3d3729984880b856c56c9ff434941e 100644 (file)
@@ -120,7 +120,7 @@ def register_opts(conf):
 
 def register_cli_opts(conf):
     conf.register_group(serial_opt_group)
-    conf.register_cli_opt(CLI_OPTS, serial_opt_group)
+    conf.register_cli_opts(CLI_OPTS, serial_opt_group)
 
 
 def list_opts():