~zulcss/ec2-init/ec2-init-config

« back to all changes in this revision

Viewing changes to ec2config/__init__.py

  • Committer: Chuck Short
  • Date: 2010-01-05 18:43:02 UTC
  • Revision ID: zulcss@ubuntu.com-20100105184302-caf9pc56qkho8w2i
First non-working cut

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import yaml
 
2
 
 
3
class EC2Config():
 
4
        def check_for_updates(self):
 
5
                #stream = file('/tmp/ec2.yaml')
 
6
                ec2Config = yaml.load(stream)
 
7
                stream.close()
 
8
 
 
9
                value = ec2Config['apt_update']
 
10
                return value