[Starcluster] plugin __init__
This archive was generated by
It seems that in implementing a plugin, you have to define the __init__
method, even if your plugin class subclases ClusterSetup. That is, this
from starcluster import clustersetup as sc
def run(self, nodes, master, user, user_shell, volumes):
generates an error when starting starcluster, because at some point in the
code you're doing:
If klass.__init__ is not defined, this generates an error since
klass.__init__ will not be a function (e.g. it will fail the
inspect.isfunction() test) , instead it is a "slot wrapper."
Adding a dummy __init__ solves the problem.
Perhaps the base class ClsuterSetup should define a dummy init itself?
Received on Thu Apr 15 2010 - 19:23:57 EDT