diff --git a/collectd-extensions/src/cpu.py b/collectd-extensions/src/cpu.py index 7789350..6888af0 100755 --- a/collectd-extensions/src/cpu.py +++ b/collectd-extensions/src/cpu.py @@ -45,6 +45,7 @@ class CPU: collectd.error("%s %s" % (PLUGIN, err_str)) + # Instantiate the class c = CPU() diff --git a/collectd-extensions/src/mtce_notifier.py b/collectd-extensions/src/mtce_notifier.py index 9b72b81..3da803b 100755 --- a/collectd-extensions/src/mtce_notifier.py +++ b/collectd-extensions/src/mtce_notifier.py @@ -388,6 +388,7 @@ def notifier_func(nObject): return 0 + collectd.register_config(config_func) collectd.register_init(init_func) collectd.register_notification(notifier_func) diff --git a/collectd-extensions/src/ntpq.py b/collectd-extensions/src/ntpq.py index b470d7c..1fb9cc8 100755 --- a/collectd-extensions/src/ntpq.py +++ b/collectd-extensions/src/ntpq.py @@ -97,6 +97,7 @@ class NtpqObject: repair = "Monitor and if condition persists, " repair += "contact next level of support." + # This plugin's class object - persists over read calls obj = NtpqObject() diff --git a/vm-topology/vm-topology/vm_topology/exec/vm_topology.py b/vm-topology/vm-topology/vm_topology/exec/vm_topology.py index 48d57a3..b77d1cc 100644 --- a/vm-topology/vm-topology/vm_topology/exec/vm_topology.py +++ b/vm-topology/vm-topology/vm_topology/exec/vm_topology.py @@ -489,6 +489,7 @@ def list_to_range(L=None): return ",".join( "-".join(map(str, (g[0][1], g[-1][1])[:len(g)])) for g in G) + def range_to_list(csv_range=None): """ Convert a string of comma separate ranges into an expanded list of integers. E.g., '1-3,8-9,15' is converted to [1,2,3,8,9,15] @@ -1470,7 +1471,6 @@ def get_info_and_display(show=None): 'error' ] - # Get keystone credentials from nova.conf auth = keystone.load_auth_from_conf_options(CONF, AUTHTOKEN_GROUP) keystone_session = session.Session(auth=auth)