Watcher plugins table in Guru meditation reports
In this changeset, I added the list of all the available plugins for the current instance of any given Watcher service. Partially Implements: blueprint plugins-parameters Change-Id: I58c9724a229712b0322a578f0f89a61b38dfd80a
This commit is contained in:
@@ -118,6 +118,14 @@ def is_hostname_safe(hostname):
|
||||
:returns: True if valid. False if not.
|
||||
|
||||
"""
|
||||
m = '^[a-z0-9]([a-z0-9\-]{0,61}[a-z0-9])?$'
|
||||
m = r'^[a-z0-9]([a-z0-9\-]{0,61}[a-z0-9])?$'
|
||||
return (isinstance(hostname, six.string_types) and
|
||||
(re.match(m, hostname) is not None))
|
||||
|
||||
|
||||
def get_cls_import_path(cls):
|
||||
"""Return the import path of a given class"""
|
||||
module = cls.__module__
|
||||
if module is None or module == str.__module__:
|
||||
return cls.__name__
|
||||
return module + '.' + cls.__name__
|
||||
|
||||
Reference in New Issue
Block a user