Merge "Add client property for common.base.Manager"

This commit is contained in:
Jenkins
2015-01-08 03:41:23 +00:00
committed by Gerrit Code Review

View File

@@ -49,6 +49,11 @@ class Manager(object):
def __init__(self, api):
self.api = api
@property
def client(self):
"""Compatible with latest oslo-incubator.apiclient code."""
return self.api
def _create(self, url, body):
body = self.api.post(url, json=body).json()
if body: