From 1db573ff12172f0a278b7318fe8094527e2bc72a Mon Sep 17 00:00:00 2001 From: Eric Larese Date: Wed, 2 Mar 2016 15:41:36 -0500 Subject: [PATCH] Use only_contrib option for nova_client calls Use the only_contrib option that was added by I030f4c55c2795c7f7973f5f12e54b9819c4a5578 to speed up nova_client calls and skip the search for nova_client extensions to reduce /var/log/audit noise. Change-Id: Ic97b342a3633ffdf05b02ddd81baad88e1605a75 Closes-Bug: #1509500 --- neutron/notifiers/nova.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neutron/notifiers/nova.py b/neutron/notifiers/nova.py index 57f636e0c06..492080d4509 100644 --- a/neutron/notifiers/nova.py +++ b/neutron/notifiers/nova.py @@ -57,7 +57,8 @@ class Notifier(object): auth=auth) extensions = [ - ext for ext in nova_client.discover_extensions(NOVA_API_VERSION) + ext for ext in nova_client.discover_extensions(NOVA_API_VERSION, + only_contrib=True) if ext.name == "server_external_events"] self.nclient = nova_client.Client( NOVA_API_VERSION,