diff options
Diffstat (limited to 'cloudinit/sources/DataSourceOVF.py')
| -rw-r--r-- | cloudinit/sources/DataSourceOVF.py | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/cloudinit/sources/DataSourceOVF.py b/cloudinit/sources/DataSourceOVF.py index 178ccb0f..045291e7 100644 --- a/cloudinit/sources/DataSourceOVF.py +++ b/cloudinit/sources/DataSourceOVF.py @@ -275,6 +275,12 @@ class DataSourceOVF(sources.DataSource):          self.cfg = cfg          return True +    def _get_subplatform(self): +        system_type = util.read_dmi_data("system-product-name").lower() +        if system_type == 'vmware': +            return 'vmware (%s)' % self.seed +        return 'ovf (%s)' % self.seed +      def get_public_ssh_keys(self):          if 'public-keys' not in self.metadata:              return [] | 
