Fri, Apr 05, 2019 at 05:17:50PM CEST, olichtne(a)redhat.com wrote:
From: Ondrej Lichtner <olichtne(a)redhat.com>
When initializing a Recipe instance, we're looking for class Param and
HostReq objects to copy and instantiate into the Recipe instance.
However while looping throught the dir() of an instance we can sometimes
attempt to access a "property" or other attributes which aren't valid
during the init method.
The solution is to filter out the type of attributes from the class
itself based on the type that we want to work with. This also simplifies
the code a little.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
Acked-by: Jan Tluka <jtluka(a)redhat.com>