diff options
author | spenczar <spenczar@u.northwestern.edu> | 2011-07-01 14:47:19 -0400 |
---|---|---|
committer | spenczar <spenczar@u.northwestern.edu> | 2011-07-01 14:47:19 -0400 |
commit | 5f3eb789ae2ef88ae40fb4ecb5f49f7a981b2add (patch) | |
tree | e3aecbc7180ca280c6da5025d56ffec112dc8ea7 | |
parent | 4de46afbc80b01bf7b5dbe3616a75b6185e333dc (diff) | |
download | boto-5f3eb789ae2ef88ae40fb4ecb5f49f7a981b2add.tar.gz |
Added a new class, InstanceGroup, with just a __init__ and __repr__.
-rw-r--r-- | boto/emr/instance_group.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/boto/emr/instance_group.py b/boto/emr/instance_group.py new file mode 100644 index 00000000..b296dcbe --- /dev/null +++ b/boto/emr/instance_group.py @@ -0,0 +1,12 @@ +class InstanceGroup(object): + def __init__(self, num_instances, role, type, market, name): + self.num_instances = num_instances + self.role = role + self.type = type + self.market = market + self.name = name + + def __repr__(self): + return '%s.%s(name=%r, num_instances=%r, role=%r, type=%r, market = %r)' % ( + self.__class__.__module__, self.__class__.__name__, + self.name, self.num_instances, self.role, self.type, self.market) |