diff options
author | Scott Moser <smoser@brickies.net> | 2016-11-18 16:50:06 -0500 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2016-11-18 16:50:06 -0500 |
commit | 053e93bc843199becf7b87aef334baa0da28878f (patch) | |
tree | ad4526c556b8923de5a7b6e2fc1e000a4ba20672 /cloudinit/sources/__init__.py | |
parent | dd133325bffc8942c02bf4e7c77f54396cbd3a49 (diff) | |
parent | 9e904bbc3336b96475bfd00fb3bf1262ae4de49f (diff) | |
download | vyos-cloud-init-053e93bc843199becf7b87aef334baa0da28878f.tar.gz vyos-cloud-init-053e93bc843199becf7b87aef334baa0da28878f.zip |
merge from master at 0.7.8-49-g9e904bb
Diffstat (limited to 'cloudinit/sources/__init__.py')
-rw-r--r-- | cloudinit/sources/__init__.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cloudinit/sources/__init__.py b/cloudinit/sources/__init__.py index d1395270..13fb7c62 100644 --- a/cloudinit/sources/__init__.py +++ b/cloudinit/sources/__init__.py @@ -261,6 +261,18 @@ class DataSource(object): def first_instance_boot(self): return + def activate(self, cfg, is_new_instance): + """activate(cfg, is_new_instance) + + This is called before the init_modules will be called. + The cfg is fully up to date config, it contains a merged view of + system config, datasource config, user config, vendor config. + It should be used rather than the sys_cfg passed to __init__. + + is_new_instance is a boolean indicating if this is a new instance. + """ + return + def normalize_pubkey_data(pubkey_data): keys = [] |