[2.0rc4] multiple lines of DHCP snippets are not properly indented

Bug #1614404 reported by Nobuto Murata
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Unassigned

Bug Description

Putting DHCP snippets as:
====
default-lease-time 1200;
max-lease-time 1200;
====
will be rendered as below (the second line is not properly indented). From DHCPD perspective, it looks like a valid config, but would be nice to be indented for readability as a wishlist.

#
# Networks
#
shared-network vlan-5001 {
    subnet 192.168.100.0 netmask 255.255.255.0 {
           ignore-client-uids true;
           option subnet-mask 255.255.255.0;
           option broadcast-address 192.168.100.255;
           option domain-name-servers 192.168.100.1;
           option domain-name "maas";
           option routers 192.168.100.1;
           option ntp-servers ntp.ubuntu.com;
           default-lease-time 600;
           max-lease-time 600;
           #
           # Subnet DHCP snippets
           #
           # Name: lease time
           default-lease-time 1200;
max-lease-time 1200;
           pool {
              range 192.168.100.201 192.168.100.230;
           }
    }
}

Related branches

Revision history for this message
Nobuto Murata (nobuto) wrote :
Changed in maas:
milestone: none → 2.1.0
Lee Trager (ltrager)
no longer affects: maas/2.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.