DataSourceOVF do not provide a default static hostname

This is the same change made in DataSourceNoCloud, but to the
OVF DataSource.
This commit is contained in:
Scott Moser
2011-09-01 11:07:28 -04:00
parent 415b2e47e4
commit 9a769a9f0e
2 changed files with 4 additions and 4 deletions

View File

@@ -51,7 +51,6 @@ class DataSourceOVF(DataSource.DataSource):
ud = ""
defaults = {
"local-hostname" : "ubuntuhost",
"instance-id" : "nocloud"
}
@@ -109,9 +108,6 @@ class DataSourceOVF(DataSource.DataSource):
if not 'public-keys' in self.metadata: return([])
return([self.metadata['public-keys'],])
def get_hostname(self):
return(self.metadata['local-hostname'])
# the data sources' config_obj is a cloud-config formated
# object that came to it from ways other than cloud-config
# because cloud-config content would be handled elsewhere