Add missing user-id option to generic.Password

The user_id field is available when constructing the plugin from python
however the option is not listed in the get_options list.

Change-Id: I036c4a49f58e4412c6cfb477b56b31b7b965c2fb
This commit is contained in:
wanghong
2014-11-04 15:04:14 +08:00
committed by Jamie Lennox
parent b7da6d0e84
commit bf0f39fbfa
2 changed files with 2 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ LOG = logging.getLogger(__name__)
def get_options():
return [
cfg.StrOpt('user-id', help='User id'),
cfg.StrOpt('user-name', dest='username', help='Username',
deprecated_name='username'),
cfg.StrOpt('user-domain-id', help="User's domain id"),

View File

@@ -45,6 +45,7 @@ class PasswordTests(utils.GenericPluginTestCase):
allowed_opts = ['user-name',
'user-domain-id',
'user-domain-name',
'user-id',
'password',
'domain-id',