MuranoPL does not handle properly derived class without __init__ method.
Bug #1597457 reported by
Alexander Saprykin
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Murano |
Fix Released
|
High
|
Stan Lagun | ||
Mitaka |
Fix Committed
|
High
|
Valerii Kovalchuk | ||
Newton |
Fix Released
|
High
|
Stan Lagun |
Bug Description
MuranoPL engine doesn't parse correctly signature of __init__ method that is not defined in derived class.
In case of inheritance, when Base class has __init__ method, but Derived class does not have __init__ method, attempt to create Derived class instance fails with exception:
[TypeError]: __init__() takes exactly 2 arguments (1 given)
Example:
class Base(object):
def __init__(self, this):
self._owner = this.find_
class Derived(Base):
pass
Workaround:
Define explicit method __init__ in derived class that calls parent's class __init__ method.
description: | updated |
Changed in murano: | |
importance: | Undecided → High |
milestone: | none → newton-2 |
tags: | added: muranopl |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/335621
Review: https:/