lp:~freyes/ubuntu/precise/serverstack-dns/index-out-of-range
- Get this branch:
- bzr branch lp:~freyes/ubuntu/precise/serverstack-dns/index-out-of-range
Branch merges
- OpenStack Charmers: Pending requested
-
Diff: 14 lines (+4/-0)1 file modifiedserverstack-tenant-dns (+4/-0)
Branch information
- Owner:
- Felipe Reyes
- Status:
- Development
Recent revisions
- 17. By Felipe Reyes
-
Skip empty lines when iterating hosts file
If the hosts file contains empty lines a list index out of range exception
is raisedTraceback (most recent call last):
File "/usr/bin/serverstack- tenant- dns", line 256, in <module>
add_current_ instances( )
File "/usr/bin/serverstack- tenant- dns", line 144, in add_current_ instances
add_host_entry( hostname, ip_addr, "")
File "/usr/bin/serverstack- tenant- dns", line 81, in add_host_entry
hn = _hostname[1]
IndexError: list index out of range - 14. By Liam Young
-
[niedbalski, r=gnuoy]
- This patch adds the ability to populate the dnsmasq
file with the instances for the current tenant.
- It modifies the configuration to add a new entry called
'add_current_instances' which defaults to False.
- It modifies the logic for adding entries based on the
current tenant available instances and adds them to the
dnsmasq host file. - 8. By James Page
-
* d/upstart: Sort out pre-start /var/run/dnsmasq creation.
* Re-jig tenant filtering.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)