Fix typos in inline docs
Change-Id: I7ed499095c0e6920ad614a32a351b7323acbf400
This commit is contained in:
parent
2d970ef2cc
commit
cf5b8ba271
|
@ -484,14 +484,14 @@ class ConfigurationAdapter(object):
|
||||||
|
|
||||||
class APIConfigurationAdapter(ConfigurationAdapter):
|
class APIConfigurationAdapter(ConfigurationAdapter):
|
||||||
"""This configuration adapter extends the base class and adds properties
|
"""This configuration adapter extends the base class and adds properties
|
||||||
common accross most OpenstackAPI services
|
common across most OpenstackAPI services.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, port_map=None, service_name=None, charm_instance=None):
|
def __init__(self, port_map=None, service_name=None, charm_instance=None):
|
||||||
"""
|
"""
|
||||||
Note passing port_map and service_name is deprecated, but supporte for
|
Note passing port_map and service_name is deprecated, but supported for
|
||||||
backwards compatibility. The port_map and service_name can be got from
|
backwards compatibility. The port_map and service_name can be obtained
|
||||||
the self.charm_instance weak reference.
|
from the self.charm_instance weak reference.
|
||||||
:param port_map: Map containing service names and the ports used e.g.
|
:param port_map: Map containing service names and the ports used e.g.
|
||||||
port_map = {
|
port_map = {
|
||||||
'svc1': {
|
'svc1': {
|
||||||
|
@ -548,8 +548,8 @@ class APIConfigurationAdapter(ConfigurationAdapter):
|
||||||
def external_ports(self):
|
def external_ports(self):
|
||||||
"""Return ports the service will be accessed on
|
"""Return ports the service will be accessed on
|
||||||
|
|
||||||
The self.port_map is a dictionary of dictionarys, where the ports are
|
The self.port_map is a dictionary of dictionaries, where the ports are
|
||||||
two levels deep (the leaves). This returns a set() of those ports.
|
two levels deep (the leaves). This returns a set() of those ports.
|
||||||
|
|
||||||
@return set of ports service can be accessed on
|
@return set of ports service can be accessed on
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue