]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix log statement to log correct variable first_ip
authorAaron Rosen <aaronorosen@gmail.com>
Thu, 17 Sep 2015 01:34:37 +0000 (18:34 -0700)
committerAaron Rosen <aaronorosen@gmail.com>
Thu, 17 Sep 2015 01:34:37 +0000 (18:34 -0700)
Change-Id: I75b8caad184d8fde535689000fbe11ac188c8b77

neutron/db/ipam_non_pluggable_backend.py

index 4c77835a26389a87d8040bbd06b93ca832ecd66b..cf9c18ad5dba4be0bc58f050388c49ef33a546b4 100644 (file)
@@ -75,7 +75,7 @@ class IpamNonPluggableBackend(ipam_backend_mixin.IpamBackendMixin):
             LOG.debug("Allocated IP - %(ip_address)s from %(first_ip)s "
                       "to %(last_ip)s",
                       {'ip_address': ip_address,
-                       'first_ip': ip_address,
+                       'first_ip': ip_range['first_ip'],
                        'last_ip': ip_range['last_ip']})
             return {'ip_address': ip_address,
                     'subnet_id': subnet['id']}