From df68d75f6693a9d29b04deb07c119386541a5415 Mon Sep 17 00:00:00 2001 From: Mark McClain Date: Fri, 3 Jan 2014 16:58:01 -0500 Subject: [PATCH] Make compatible with Cliff (1.5.2) The most recent version of cliff changes the way formatters work. This temporarily disables the custom formatter to get the gate working again. Partial-Bug: #1265926 Change-Id: Id0fe9ca3ddf0326a88055f8767de4cbe4cadb950 --- neutronclient/neutron/v2_0/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/neutronclient/neutron/v2_0/__init__.py b/neutronclient/neutron/v2_0/__init__.py index b3f5d3780..c9dbdf738 100644 --- a/neutronclient/neutron/v2_0/__init__.py +++ b/neutronclient/neutron/v2_0/__init__.py @@ -341,8 +341,11 @@ class NeutronCommand(command.OpenStackCommand): def __init__(self, app, app_args): super(NeutronCommand, self).__init__(app, app_args) - if hasattr(self, 'formatters'): - self.formatters['table'] = TableFormater() + # NOTE(markmcclain): This is no longer supported in cliff version 1.5.2 + # see https://bugs.launchpad.net/python-neutronclient/+bug/1265926 + + #if hasattr(self, 'formatters'): + #self.formatters['table'] = TableFormater() def get_client(self): return self.app.client_manager.neutron