Do not use explict keyword arguments in image resource
New keyword argument was introduced in new novaclient for base resource. Because of that, we should not use explicit keyword. Change-Id: I1bda75920e034147be39dc3eff607ab7ab23840a Closes-bug: 1552674
This commit is contained in:
parent
a102c4d70f
commit
139da6adad
|
@ -37,11 +37,11 @@ def _ensure_tags(tags):
|
|||
|
||||
|
||||
class SaharaImage(images.Image):
|
||||
def __init__(self, manager, info, loaded=False):
|
||||
def __init__(self, manager, info, **kwargs):
|
||||
info['description'] = info.get('metadata', {}).get(PROP_DESCR)
|
||||
info['username'] = info.get('metadata', {}).get(PROP_USERNAME)
|
||||
info['tags'] = [tag for tag in _iter_tags(info.get('metadata', {}))]
|
||||
super(SaharaImage, self).__init__(manager, info, loaded)
|
||||
super(SaharaImage, self).__init__(manager, info, **kwargs)
|
||||
|
||||
def tag(self, tags):
|
||||
self.manager.tag(self, tags)
|
||||
|
|
Loading…
Reference in New Issue