diff options
author | Eric Larese <erlarese@us.ibm.com> | 2016-03-02 15:41:36 -0500 |
---|---|---|
committer | Eric Larese <erlarese@us.ibm.com> | 2016-08-16 19:54:21 +0000 |
commit | 1db573ff12172f0a278b7318fe8094527e2bc72a (patch) | |
tree | 8b9a0de4519fad6e94de2ea007b67f1612748091 /neutron/notifiers | |
parent | 3d6cb95f1932638e4c0772979d6e20b34de5f601 (diff) | |
download | neutron-1db573ff12172f0a278b7318fe8094527e2bc72a.tar.gz |
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
Diffstat (limited to 'neutron/notifiers')
-rw-r--r-- | neutron/notifiers/nova.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/neutron/notifiers/nova.py b/neutron/notifiers/nova.py index 57f636e0c0..492080d450 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, |