[StarCluster] How to get the config instance in a plugin?

Ling Li liling at gmail.com
Wed Feb 13 15:22:01 EST 2013


Hi,

Is there a nice way to get the "cfg" instance from within a plugin?  I
am interested in getting the S3 credentials (stored in the config file
and loaded by the cfg instance).  Initially I thought node.ec2 should
have that information, but actually it doesn't.


class MyPlugin(clustersetup.DefaultClusterSetup):
    def _add_node(self, node):
        ec2 = node.ec2 # ec2.aws_access_key_id is None.

Thanks for your time!
Ling


More information about the StarCluster mailing list