summaryrefslogtreecommitdiff
path: root/cloudinit/settings.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-08-20 21:27:04 -0400
committerScott Moser <smoser@ubuntu.com>2012-08-20 21:27:04 -0400
commit989252019b14c7147367ffddaa990b371438fa7c (patch)
treebe49fc53b38eca8eef5e074efa2e198a40004305 /cloudinit/settings.py
parenta2ebfe8f6f31ae6972620f271ab9fa935d46dff1 (diff)
parentc1d2bc7ff9824b967cca21ed0254e4ee47168b10 (diff)
downloadvyos-cloud-init-989252019b14c7147367ffddaa990b371438fa7c.tar.gz
vyos-cloud-init-989252019b14c7147367ffddaa990b371438fa7c.zip
Add the "None" datasource
The None datasource is the last resort fallback datasource. It is identifiable by a property 'is_disconnected' that indicates that the datasource used is "not connected to a datasource". This will allow any thing that needs to run to still run in the absense of a DataSource. Also, we add a logging of the datasource found in final_message, and a warning if the None datasource is found. LP: #906669
Diffstat (limited to 'cloudinit/settings.py')
-rw-r--r--cloudinit/settings.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cloudinit/settings.py b/cloudinit/settings.py
index cdfc31ae..8cc9e3b4 100644
--- a/cloudinit/settings.py
+++ b/cloudinit/settings.py
@@ -35,7 +35,9 @@ CFG_BUILTIN = {
'OVF',
'MAAS',
'Ec2',
- 'CloudStack'
+ 'CloudStack',
+ # At the end to act as a 'catch' when none of the above work...
+ 'None',
],
'def_log_file': '/var/log/cloud-init.log',
'log_cfgs': [],