]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Tighten dnsmasq version regex
authorAngus Lees <gus@inodes.org>
Fri, 28 Nov 2014 01:23:47 +0000 (12:23 +1100)
committerAngus Lees <gus@inodes.org>
Tue, 23 Dec 2014 03:53:02 +0000 (14:53 +1100)
commitd51bb9b4d0588d330a1d97dcc8d441c9dac500ae
tree2639b43583441cfd3a9e5a8421bfcb5541c12206
parent98cd8930744790ce4ac1f04408b3b593e856da75
Tighten dnsmasq version regex

The previous regex forgot to escape the '.', resulting a more liberal
match than intended.  Luckily it continued to work, since the dnsmasq
version is the first number that appears in the --version output.

This change improves the regex to correctly escape the '.' (as
presumably originally intended) and to look for the prefix "version ".

Change-Id: I12548a7b2c21262aa54c84be4e31bda15eab8d52
neutron/agent/linux/dhcp.py
neutron/tests/unit/test_linux_dhcp.py