diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-01-19 04:26:27 +0000 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-01-19 04:26:27 +0000 |
commit | 548f5b3f81799f3339e66444be58f7016fa8c0a2 (patch) | |
tree | 126675d48aa9ed0f533860c40f79cef9e4f00471 /cloudinit | |
parent | bfbda7907b261bd3f7e2731aec50dbdeb76489e2 (diff) | |
download | vyos-cloud-init-548f5b3f81799f3339e66444be58f7016fa8c0a2.tar.gz vyos-cloud-init-548f5b3f81799f3339e66444be58f7016fa8c0a2.zip |
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.
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
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() |