StarCluster - Mailing List Archive

How to get the config instance in a plugin?

From: Ling Li <no email>
Date: Wed, 13 Feb 2013 15:22:01 -0500

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
Received on Wed Feb 13 2013 - 15:22:23 EST
This archive was generated by hypermail 2.3.0.

Search:

Sort all by:

Date

Month

Thread

Author

Subject