Move docstrings to the first line of the function definition
according to http://docs.openstack.org/developer/hacking/ Change-Id: Icd8755e79b400c9b2b567386bba5f29b3f39a244
This commit is contained in:
parent
af2959c1f4
commit
e0dff5a6e4
|
@ -92,14 +92,13 @@ def keepalived_check_script_path():
|
|||
'vrrp/check_script.sh')
|
||||
|
||||
|
||||
"""Get Listeners
|
||||
|
||||
:returns An array with the ids of all listeners, e.g. ['123', '456', ...]
|
||||
or [] if no listeners exist
|
||||
"""
|
||||
|
||||
|
||||
def get_listeners():
|
||||
"""Get Listeners
|
||||
|
||||
:returns: An array with the ids of all listeners, e.g. ['123', '456', ...]
|
||||
or [] if no listeners exist
|
||||
"""
|
||||
|
||||
if os.path.exists(CONF.haproxy_amphora.base_path):
|
||||
return [f for f in os.listdir(CONF.haproxy_amphora.base_path)
|
||||
if os.path.exists(config_path(f))]
|
||||
|
|
Loading…
Reference in New Issue