From 8270a1c08b03c8463377ee6723067e1a62605a84 Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Wed, 2 Aug 2017 07:59:39 +0300 Subject: [PATCH] AdminUtil|NSX-v: complete plugin init Commit 5bc9e05fc6ab4068822ffad0b82788ae7225ee19 included the init_complete in the admin util wrapper plugin, but the order of commands should be different. We should mark this plugin as the core one, before calling init_complete a in some scenarios it tries to get the core plugin. Change-Id: Ifce172a42d94f52d8dfc6240bdfd5564ef6bbf36 --- vmware_nsx/shell/admin/plugins/nsxv/resources/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vmware_nsx/shell/admin/plugins/nsxv/resources/utils.py b/vmware_nsx/shell/admin/plugins/nsxv/resources/utils.py index bc73b8fa2e..d842d1a03f 100644 --- a/vmware_nsx/shell/admin/plugins/nsxv/resources/utils.py +++ b/vmware_nsx/shell/admin/plugins/nsxv/resources/utils.py @@ -48,10 +48,10 @@ class NsxVPluginWrapper(plugin.NsxVPlugin): def __init__(self): config.register_nsxv_azs(cfg.CONF, cfg.CONF.nsxv.availability_zones) super(NsxVPluginWrapper, self).__init__() - # finish the plugin initialization (md-proxy) - self.init_complete(0, 0, 0) # Make this the core plugin directory.add_plugin('CORE', self) + # finish the plugin initialization (md-proxy) + self.init_complete(0, 0, 0) def _start_rpc_listeners(self): pass