diff options
author | Scott Moser <smoser@ubuntu.com> | 2015-08-07 10:20:34 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2015-08-07 10:20:34 -0500 |
commit | 71c8fedcd581d8c4aa937d270f5bbd2e5af99e26 (patch) | |
tree | d360a296e6a62228678d7da0bb85e12f6c3bd1e1 /cloudinit/reporting | |
parent | 53f35028af55b06c19f409d6081aa766607f22a8 (diff) | |
download | vyos-cloud-init-71c8fedcd581d8c4aa937d270f5bbd2e5af99e26.tar.gz vyos-cloud-init-71c8fedcd581d8c4aa937d270f5bbd2e5af99e26.zip |
undo broken logic that attempted to not re-initialize classes
Diffstat (limited to 'cloudinit/reporting')
-rw-r--r-- | cloudinit/reporting/__init__.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cloudinit/reporting/__init__.py b/cloudinit/reporting/__init__.py index b9d4f679..a3b8332f 100644 --- a/cloudinit/reporting/__init__.py +++ b/cloudinit/reporting/__init__.py @@ -87,11 +87,7 @@ def update_configuration(config): registered = instantiated_handler_registry.registered_items handler_config = handler_config.copy() cls = available_handlers.registered_items[handler_config.pop('type')] - if (handler_name in registered and - (registered[handler_name] == handler_config)): - continue - else: - instantiated_handler_registry.unregister_item(handler_name) + instantiated_handler_registry.unregister_item(handler_name) instance = cls(**handler_config) instantiated_handler_registry.register_item(handler_name, instance) |