# Copyright (C) 2012 Yahoo! Inc. # # Author: Joshua Harlow <harlowja@yahoo-inc.com> # # This file is part of cloud-init. See LICENSE file for license information. from cloudinit import sources class DataSourceNone(sources.DataSource): dsname = "None" def __init__(self, sys_cfg, distro, paths, ud_proc=None): sources.DataSource.__init__(self, sys_cfg, distro, paths, ud_proc) self.metadata = {} self.userdata_raw = "" def _get_data(self): # If the datasource config has any provided 'fallback' # userdata or metadata, use it... if "userdata_raw" in self.ds_cfg: self.userdata_raw = self.ds_cfg["userdata_raw"] if "metadata" in self.ds_cfg: self.metadata = self.ds_cfg["metadata"] return True def _get_subplatform(self): """Return the subplatform metadata source details.""" return "config" def get_instance_id(self): return "iid-datasource-none" # Used to match classes to dependencies datasources = [ (DataSourceNone, (sources.DEP_FILESYSTEM, sources.DEP_NETWORK)), (DataSourceNone, []), ] # Return a list of data sources that match this set of dependencies def get_datasource_list(depends): return sources.list_from_depends(depends, datasources)
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
azure | Folder | 0755 |
|
|
helpers | Folder | 0755 |
|
|
DataSourceAkamai.py | File | 12.66 KB | 0644 |
|
DataSourceAliYun.py | File | 3.26 KB | 0644 |
|
DataSourceAltCloud.py | File | 8.42 KB | 0644 |
|
DataSourceAzure.py | File | 75.51 KB | 0644 |
|
DataSourceBigstep.py | File | 1.9 KB | 0644 |
|
DataSourceCloudCIX.py | File | 5.19 KB | 0644 |
|
DataSourceCloudSigma.py | File | 3.86 KB | 0644 |
|
DataSourceCloudStack.py | File | 11.21 KB | 0644 |
|
DataSourceConfigDrive.py | File | 11.23 KB | 0644 |
|
DataSourceDigitalOcean.py | File | 4.2 KB | 0644 |
|
DataSourceEc2.py | File | 41.79 KB | 0644 |
|
DataSourceExoscale.py | File | 8.55 KB | 0644 |
|
DataSourceGCE.py | File | 13.33 KB | 0644 |
|
DataSourceHetzner.py | File | 5.39 KB | 0644 |
|
DataSourceIBMCloud.py | File | 14.65 KB | 0644 |
|
DataSourceLXD.py | File | 17.2 KB | 0644 |
|
DataSourceMAAS.py | File | 14.85 KB | 0644 |
|
DataSourceNWCS.py | File | 4.41 KB | 0644 |
|
DataSourceNoCloud.py | File | 15.93 KB | 0644 |
|
DataSourceNone.py | File | 1.27 KB | 0644 |
|
DataSourceOVF.py | File | 12.7 KB | 0644 |
|
DataSourceOpenNebula.py | File | 15.67 KB | 0644 |
|
DataSourceOpenStack.py | File | 10.1 KB | 0644 |
|
DataSourceOracle.py | File | 21.07 KB | 0644 |
|
DataSourceRbxCloud.py | File | 7.85 KB | 0644 |
|
DataSourceScaleway.py | File | 14.73 KB | 0644 |
|
DataSourceSmartOS.py | File | 34.26 KB | 0644 |
|
DataSourceUpCloud.py | File | 5.2 KB | 0644 |
|
DataSourceVMware.py | File | 35.31 KB | 0644 |
|
DataSourceVultr.py | File | 4.51 KB | 0644 |
|
DataSourceWSL.py | File | 14.37 KB | 0644 |
|
__init__.py | File | 43.63 KB | 0644 |
|