diff options
Diffstat (limited to 'cloudinit/sources/DataSourceNoCloud.py')
-rw-r--r-- | cloudinit/sources/DataSourceNoCloud.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/cloudinit/sources/DataSourceNoCloud.py b/cloudinit/sources/DataSourceNoCloud.py index a32bd4d0..596a96a7 100644 --- a/cloudinit/sources/DataSourceNoCloud.py +++ b/cloudinit/sources/DataSourceNoCloud.py @@ -357,6 +357,14 @@ class DataSourceNoCloudNet(DataSourceNoCloud): DataSourceNoCloud.__init__(self, sys_cfg, distro, paths) self.supported_seed_starts = ("http://", "https://") + def ds_detect(self): + """NoCloud requires "nocloud-net" as the way to specify + seeding from an http(s) address. This diverges from all other + datasources in that it does a kernel commandline match on something + other than the datasource dsname for only DEP_NETWORK. + """ + return "nocloud-net" == sources.parse_cmdline() + # Used to match classes to dependencies datasources = [ @@ -368,6 +376,3 @@ datasources = [ # Return a list of data sources that match this set of dependencies def get_datasource_list(depends): return sources.list_from_depends(depends, datasources) - - -# vi: ts=4 expandtab |