diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-08-31 15:32:37 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-08-31 15:32:37 -0400 |
commit | ca72374bebb24397219f62848c2fda599997e850 (patch) | |
tree | 0dc4658b17faff76726128ab925d667b28eec037 /cloudinit | |
parent | c7123a7f3bc08a2d45ce6b2d66107a669284e3f1 (diff) | |
download | vyos-cloud-init-ca72374bebb24397219f62848c2fda599997e850.tar.gz vyos-cloud-init-ca72374bebb24397219f62848c2fda599997e850.zip |
cloudinit/DataSource.py: for default instance id, use 'iid-datasource'
Previously the Ubuntu specific and confusing string "ubuntuhost" was
used. Use something that gives a better hint as to where it came from
for get_instance_id()
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/DataSource.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/DataSource.py b/cloudinit/DataSource.py index 65c45166..3c4ca995 100644 --- a/cloudinit/DataSource.py +++ b/cloudinit/DataSource.py @@ -94,7 +94,7 @@ class DataSource: def get_instance_id(self): if 'instance-id' not in self.metadata: - return "ubuntuhost" + return "iid-datasource" return(self.metadata['instance-id']) def get_hostname(self, fqdn=False): |