~raharper/curtin/trunk.fix-bcache-sysfs-write-failures-on-remove

« back to all changes in this revision

Viewing changes to curtin/__init__.py

Rename centos_network_curthooks -> centos_apply_network_config.

Rename centos_network_curthooks and its upper-cased feature
CENTOS_NETWORK_CURTHOOKS to centos_apply_network_config and
CENTOS_APPLY_NETWORK_CONFIG respectively.

Also drop the handling of 'cloudconfig' entries from that function.
Handling of cloudconfig is up to the curthooks, and that is being
added to maas-images built-in curthooks.

The name centos_apply_network_config is left in curtin.cmd.curthooks.
We add a unittest to ensures that entry point is never lost.

Also add unit test to ensure 'write_files' is available from futil.


Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
# can determine which features are supported.  Each entry should have
24
24
# a consistent meaning.
25
25
FEATURES = [
26
 
    # curtin can configure centos networking via curthooks function
27
 
    'CENTOS_NETWORK_CURTHOOKS',
 
26
    # curtin can apply centos networking via centos_apply_network_config
 
27
    'CENTOS_APPLY_NETWORK_CONFIG',
28
28
    # install supports the 'network' config version 1
29
29
    'NETWORK_CONFIG_V1',
30
30
    # reporter supports 'webhook' type