Merge "Remove default=None when set value in Config"

This commit is contained in:
Jenkins 2016-10-06 17:28:45 +00:00 committed by Gerrit Code Review
commit ddc2f8a803

@ -31,55 +31,55 @@ LOG = logging.getLogger(__name__)
credential_opts = [ credential_opts = [
# auth_type opt # auth_type opt
cfg.StrOpt('auth_type', default=None, cfg.StrOpt('auth_type',
help="The type of authentication credential to create. " help="The type of authentication credential to create. "
"Possible values are 'token', 'password', 'keystone_token', " "Possible values are 'token', 'password', 'keystone_token', "
"and 'keystone_password'. Required if no context is passed to " "and 'keystone_password'. Required if no context is passed to "
"the credential factory."), "the credential factory."),
# token opt # token opt
cfg.StrOpt('token', default=None, secret=True, cfg.StrOpt('token', secret=True,
help="Token for authentication. Required for 'token' and " help="Token for authentication. Required for 'token' and "
"'keystone_token' auth_type if no context is passed to the " "'keystone_token' auth_type if no context is passed to the "
"credential factory."), "credential factory."),
# password opts # password opts
cfg.StrOpt('username', default=None, cfg.StrOpt('username',
help="Username for authentication. Required for 'password' " help="Username for authentication. Required for 'password' "
"auth_type. Optional for the 'keystone_password' auth_type."), "auth_type. Optional for the 'keystone_password' auth_type."),
cfg.StrOpt('password', default=None, secret=True, cfg.StrOpt('password', secret=True,
help="Password for authentication. Required for 'password' and " help="Password for authentication. Required for 'password' and "
"'keystone_password' auth_type."), "'keystone_password' auth_type."),
# keystone credential opts # keystone credential opts
cfg.StrOpt('user_id', default=None, cfg.StrOpt('user_id',
help="User ID for authentication. Optional for " help="User ID for authentication. Optional for "
"'keystone_token' and 'keystone_password' auth_type."), "'keystone_token' and 'keystone_password' auth_type."),
cfg.StrOpt('user_domain_id', default=None, cfg.StrOpt('user_domain_id',
help="User's domain ID for authentication. Optional for " help="User's domain ID for authentication. Optional for "
"'keystone_token' and 'keystone_password' auth_type."), "'keystone_token' and 'keystone_password' auth_type."),
cfg.StrOpt('user_domain_name', default=None, cfg.StrOpt('user_domain_name',
help="User's domain name for authentication. Optional for " help="User's domain name for authentication. Optional for "
"'keystone_token' and 'keystone_password' auth_type."), "'keystone_token' and 'keystone_password' auth_type."),
cfg.StrOpt('trust_id', default=None, cfg.StrOpt('trust_id',
help="Trust ID for trust scoping. Optional for " help="Trust ID for trust scoping. Optional for "
"'keystone_token' and 'keystone_password' auth_type."), "'keystone_token' and 'keystone_password' auth_type."),
cfg.StrOpt('domain_id', default=None, cfg.StrOpt('domain_id',
help="Domain ID for domain scoping. Optional for " help="Domain ID for domain scoping. Optional for "
"'keystone_token' and 'keystone_password' auth_type."), "'keystone_token' and 'keystone_password' auth_type."),
cfg.StrOpt('domain_name', default=None, cfg.StrOpt('domain_name',
help="Domain name for domain scoping. Optional for " help="Domain name for domain scoping. Optional for "
"'keystone_token' and 'keystone_password' auth_type."), "'keystone_token' and 'keystone_password' auth_type."),
cfg.StrOpt('project_id', default=None, cfg.StrOpt('project_id',
help="Project ID for project scoping. Optional for " help="Project ID for project scoping. Optional for "
"'keystone_token' and 'keystone_password' auth_type."), "'keystone_token' and 'keystone_password' auth_type."),
cfg.StrOpt('project_name', default=None, cfg.StrOpt('project_name',
help="Project name for project scoping. Optional for " help="Project name for project scoping. Optional for "
"'keystone_token' and 'keystone_password' auth_type."), "'keystone_token' and 'keystone_password' auth_type."),
cfg.StrOpt('project_domain_id', default=None, cfg.StrOpt('project_domain_id',
help="Project's domain ID for project. Optional for " help="Project's domain ID for project. Optional for "
"'keystone_token' and 'keystone_password' auth_type."), "'keystone_token' and 'keystone_password' auth_type."),
cfg.StrOpt('project_domain_name', default=None, cfg.StrOpt('project_domain_name',
help="Project's domain name for project. Optional for " help="Project's domain name for project. Optional for "
"'keystone_token' and 'keystone_password' auth_type."), "'keystone_token' and 'keystone_password' auth_type."),
cfg.BoolOpt('reauthenticate', default=True, cfg.BoolOpt('reauthenticate', default=True,