~maas-committers/maas/trunk

« back to all changes in this revision

Viewing changes to src/maasserver/preseed.py

[r=allenap][bug=1343425][author=blake-rouse] Removed the "use_*_installer" methods from the Node, as they are no longer needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    compose_preseed,
35
35
    )
36
36
from maasserver.enum import (
 
37
    NODE_BOOT,
37
38
    NODE_STATUS,
38
39
    NODEGROUPINTERFACE_MANAGEMENT,
39
40
    PRESEED_TYPE,
178
179
    series = node.get_distro_series()
179
180
    arch, subarch = node.split_arch()
180
181
 
181
 
    if node.should_use_fastpath_installer():
 
182
    if node.boot_type == NODE_BOOT.FASTPATH:
182
183
        purpose = 'xinstall'
183
 
    else:
 
184
    elif node.boot_type == NODE_BOOT.DEBIAN:
184
185
        purpose = 'install'
 
186
    else:
 
187
        purpose = 'unknown'
185
188
 
186
189
    image = BootImage.objects.get_latest_image(
187
190
        node.nodegroup, os_name, arch, subarch, series, purpose)