From 92b99b325b2d437825cc87253e76c756a136ff28 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Mon, 27 Aug 2012 10:56:47 -0700 Subject: 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). --- cloudinit/cloud.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cloudinit/cloud.py') 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() -- cgit v1.2.3