From 548f5b3f81799f3339e66444be58f7016fa8c0a2 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Wed, 19 Jan 2011 04:26:27 +0000 Subject: add 'cloud-init-query' tool, to query fields from cloud data At this point, this is appears much like a cripped 'ec2metdata' tool. However, it does provide a tool interface to some fields independent of their DataSource. --- cloudinit/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cloudinit') diff --git a/cloudinit/__init__.py b/cloudinit/__init__.py index 7b300a63..fd20c7be 100644 --- a/cloudinit/__init__.py +++ b/cloudinit/__init__.py @@ -203,6 +203,12 @@ class CloudInit: def get_userdata(self): return(self.datasource.get_userdata()) + def get_userdata_raw(self): + return(self.datasource.get_userdata_raw()) + + def get_instance_id(self): + return(self.datasource.get_instance_id()) + def update_cache(self): self.write_to_cache() self.store_userdata() -- cgit v1.2.3