
from oslo_config import cfg

from glance.i18n import _


registry_addr_opts = [
    cfg.StrOpt('registry_host', default='0.0.0.0',
               help=_('Address to find the registry server.')),
    cfg.PortOpt('registry_port', default=9191,
                help=_('Port the registry server is listening on.')),
]

CONF = cfg.CONF
CONF.register_opts(registry_addr_opts)


from oslo_config import cfg

from glance.i18n import _


registry_addr_opts = [
    cfg.StrOpt('registry_host', default='0.0.0.0',
               help=_("""
Address the registry server is hosted on.

Possible values:
    * A valid IP or hostname

Related options:
    * None

""")),
    cfg.PortOpt('registry_port', default=9191,
                help=_("""
Port the registry server is listening on.

Possible values:
    * A valid port number

Related options:
    * None

""")),
]

CONF = cfg.CONF
CONF.register_opts(registry_addr_opts)

Improve help text of registry server opts
Improve help text of registry server opts

Partial-Bug: #1570946

Change-Id: Iad255d3ab5d96b91f897731f4f29cd804d6b1840

  
  from oslo_config import cfg
  
  from glance.i18n import _
  
  
  registry_addr_opts = [
      cfg.StrOpt('registry_host', default='0.0.0.0',
-                help=_('Address to find the registry server.')),
+                help=_("""
+ Address the registry server is hosted on.
+ 
+ Possible values:
+     * A valid IP or hostname
+ 
+ Related options:
+     * None
+ 
+ """)),
      cfg.PortOpt('registry_port', default=9191,
-                 help=_('Port the registry server is listening on.')),
+                 help=_("""
+ Port the registry server is listening on.
+ 
+ Possible values:
+     * A valid port number
+ 
+ Related options:
+     * None
+ 
+ """)),
  ]
  
  CONF = cfg.CONF
  CONF.register_opts(registry_addr_opts)
  
Improve help text of registry server opts
## Code Before:

from oslo_config import cfg

from glance.i18n import _


registry_addr_opts = [
    cfg.StrOpt('registry_host', default='0.0.0.0',
               help=_('Address to find the registry server.')),
    cfg.PortOpt('registry_port', default=9191,
                help=_('Port the registry server is listening on.')),
]

CONF = cfg.CONF
CONF.register_opts(registry_addr_opts)

## Instruction:
Improve help text of registry server opts
## Code After:

from oslo_config import cfg

from glance.i18n import _


registry_addr_opts = [
    cfg.StrOpt('registry_host', default='0.0.0.0',
               help=_("""
Address the registry server is hosted on.

Possible values:
    * A valid IP or hostname

Related options:
    * None

""")),
    cfg.PortOpt('registry_port', default=9191,
                help=_("""
Port the registry server is listening on.

Possible values:
    * A valid port number

Related options:
    * None

""")),
]

CONF = cfg.CONF
CONF.register_opts(registry_addr_opts)
