Don't enforce microversion for stats API

Due to bug in microversion logic, adding any new microversioned
API would mandate OpenStack-API-Version header in the request.
This change is to avoid microversion enforcement until the
bug in microversioning is fixed.
Please note that, this issue is only seen when no version
header is sent to the controller the first time and also
this bug can not be reproduced by magnum CLI since it sends
the latest version header by default.

Change-Id: I9a576e048846e930c62fb55584b125585137fcfd
Partial-Bug: #1659431
This commit is contained in:
Vijendar Komalla 2017-02-08 16:37:14 -06:00
parent 3d43c27b2b
commit 221846c437
1 changed files with 0 additions and 1 deletions

View File

@ -45,7 +45,6 @@ class StatsController(base.Controller):
def __init__(self, **kwargs):
super(StatsController, self).__init__()
@base.Controller.api_version("1.4") # noqa
@expose.expose(Stats, wtypes.text, wtypes.text)
def get_all(self, project_id=None, type="cluster"):
"""Retrieve magnum stats.