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
This commit is contained in:
@@ -341,8 +341,11 @@ class NeutronCommand(command.OpenStackCommand):
|
|||||||
|
|
||||||
def __init__(self, app, app_args):
|
def __init__(self, app, app_args):
|
||||||
super(NeutronCommand, self).__init__(app, app_args)
|
super(NeutronCommand, self).__init__(app, app_args)
|
||||||
if hasattr(self, 'formatters'):
|
# NOTE(markmcclain): This is no longer supported in cliff version 1.5.2
|
||||||
self.formatters['table'] = TableFormater()
|
# see https://bugs.launchpad.net/python-neutronclient/+bug/1265926
|
||||||
|
|
||||||
|
#if hasattr(self, 'formatters'):
|
||||||
|
#self.formatters['table'] = TableFormater()
|
||||||
|
|
||||||
def get_client(self):
|
def get_client(self):
|
||||||
return self.app.client_manager.neutron
|
return self.app.client_manager.neutron
|
||||||
|
Reference in New Issue
Block a user