Claims: fix log message
Add log hint to info message. In addition to this follow the logging convention of using a , instead of a %. TrivialFix Change-Id: Ie9992835420aacf65b0962b51581e0e05c5bac72
This commit is contained in:
		| @@ -140,11 +140,10 @@ class Claim(NopClaim): | ||||
|         vcpus_limit = limits.get('vcpu') | ||||
|         numa_topology_limit = limits.get('numa_topology') | ||||
|  | ||||
|         msg = _("Attempting claim: memory %(memory_mb)d MB, " | ||||
|                 "disk %(disk_gb)d GB, vcpus %(vcpus)d CPU") | ||||
|         params = {'memory_mb': self.memory_mb, 'disk_gb': self.disk_gb, | ||||
|                   'vcpus': self.vcpus} | ||||
|         LOG.info(msg % params, instance=self.instance) | ||||
|         LOG.info(_LI("Attempting claim: memory %(memory_mb)d MB, " | ||||
|                      "disk %(disk_gb)d GB, vcpus %(vcpus)d CPU"), | ||||
|                  {'memory_mb': self.memory_mb, 'disk_gb': self.disk_gb, | ||||
|                   'vcpus': self.vcpus}, instance=self.instance) | ||||
|  | ||||
|         reasons = [self._test_memory(resources, memory_mb_limit), | ||||
|                    self._test_disk(resources, disk_gb_limit), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Gary Kotton
					Gary Kotton