~ubuntu-branches/ubuntu/saucy/cloud-init/saucy

« back to all changes in this revision

Viewing changes to cloudinit/sources/DataSourceEc2.py

  • Committer: Package Import Robot
  • Author(s): Scott Moser
  • Date: 2012-08-31 17:04:06 UTC
  • mto: (245.3.1 raring)
  • mto: This revision was merged to the branch mainline in revision 290.
  • Revision ID: package-import@ubuntu.com-20120831170406-0dbj84kjdfcn4ktr
* New upstream snapshot.
  * support using launch-index (ami-launch-index) (LP: #1023177)
  * usergroup related fixes (LP: #1041384, #1044044, #1044508)

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
                        self.metadata_address)
78
78
            return False
79
79
 
 
80
    @property
 
81
    def launch_index(self):
 
82
        if not self.metadata:
 
83
            return None
 
84
        return self.metadata.get('ami-launch-index')
 
85
 
80
86
    def get_instance_id(self):
81
87
        return self.metadata['instance-id']
82
88