TrivialFix: Remove only_contrib argument

While running unit tests plugins/ml2/drivers/test_type_vlan.py
the following message is observed:

""" UserWarning: Discovering extensions only by contrib path is
no longer supported since all contrib extensions have either
been made required or removed. The only_contrib argument is
deprecated and will be removed in a future release.
"""

From the source code you can see the TODO message to remove
the argument in Queens.
264c22a9cc/novaclient/client.py (L181)

This commit removes the argument and the stderr captured by unit
tests.

Change-Id: Ia4270c69c1519342636206fa439640240a1e13bb
This commit is contained in:
Trevor McCasland 2017-07-11 10:04:59 -05:00
parent a51271d760
commit 87b02a2552

View File

@ -64,8 +64,7 @@ class Notifier(object):
auth=auth)
extensions = [
ext for ext in nova_client.discover_extensions(NOVA_API_VERSION,
only_contrib=True)
ext for ext in nova_client.discover_extensions(NOVA_API_VERSION)
if ext.name == "server_external_events"]
self.nclient = nova_client.Client(
api_versions.APIVersion(NOVA_API_VERSION),