summaryrefslogtreecommitdiff
path: root/cloudinit/cloud.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-08-27 10:56:47 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-08-27 10:56:47 -0700
commit92b99b325b2d437825cc87253e76c756a136ff28 (patch)
tree57a0e234258c31d478e557a74ffff2b7095108e3 /cloudinit/cloud.py
parent33cfadd8f35b3f4beb77f871b4173600e42bbe49 (diff)
downloadvyos-cloud-init-92b99b325b2d437825cc87253e76c756a136ff28.tar.gz
vyos-cloud-init-92b99b325b2d437825cc87253e76c756a136ff28.zip
Update so that the content types searched for launch-index
variable has a little more meaning and by default look in metadata for 'launch-index' and have ec2 instead look for a different variable (thus allowing more datasources to just work).
Diffstat (limited to 'cloudinit/cloud.py')
-rw-r--r--cloudinit/cloud.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cloudinit/cloud.py b/cloudinit/cloud.py
index af69a541..95e0cfb2 100644
--- a/cloudinit/cloud.py
+++ b/cloudinit/cloud.py
@@ -76,8 +76,9 @@ class Cloud(object):
def get_instance_id(self):
return self.datasource.get_instance_id()
- def get_launch_index(self):
- return self.datasource.get_launch_index()
+ @property
+ def launch_index(self):
+ return self.datasource.launch_index
def get_public_ssh_keys(self):
return self.datasource.get_public_ssh_keys()