From 0f9e82d6a68fa46bf11c3883e65975a2b40498e4 Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Mon, 16 Jun 2014 17:15:42 +0800 Subject: [PATCH] Fix opt helpstring for dhcp_lease_duration Recently (https://review.openstack.org/#/c/92453), the functionality of dhcp_lease_duration was changed to support infinite lease times. However, this change failed to update the associated help text with the option declaration. This patch simply updates the text so that the new functionality can be understood by the user. Change-Id: Id9dbe11599c55b447387df4a2d6639b7e8dba6ce --- neutron/common/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neutron/common/config.py b/neutron/common/config.py index 19a388b0df2..1340ef2aede 100644 --- a/neutron/common/config.py +++ b/neutron/common/config.py @@ -71,7 +71,8 @@ core_opts = [ help=_("Maximum number of fixed ips per port")), cfg.IntOpt('dhcp_lease_duration', default=86400, deprecated_name='dhcp_lease_time', - help=_("DHCP lease duration")), + help=_("DHCP lease duration (in seconds). Use -1 to tell " + "dnsmasq to use infinite lease times.")), cfg.BoolOpt('dhcp_agent_notification', default=True, help=_("Allow sending resource operation" " notification to DHCP agent")),