From cbe623c226119e868ef4ba980cf8c6b8c9785423 Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Fri, 31 May 2013 08:58:45 +0100 Subject: [PATCH] API: minor fixes * Send NULL to created timestamp to set current timestamp * Remove debugging 'print' left behind Change-Id: Id894060ed201c865b51b1da163d1dab8c3ae26e9 --- libra/api/controllers/load_balancers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libra/api/controllers/load_balancers.py b/libra/api/controllers/load_balancers.py index b1563c52..636558a1 100644 --- a/libra/api/controllers/load_balancers.py +++ b/libra/api/controllers/load_balancers.py @@ -202,7 +202,6 @@ class LoadBalancersController(RestController): filter(LoadBalancer.tenantid == tenant_id).\ filter(Device.id == virtual_id).\ first() - print old_lb if old_lb is None: response.status = 400 return Responses.service_unavailable @@ -237,6 +236,7 @@ class LoadBalancersController(RestController): lb.port = 443 lb.status = 'BUILD' + lb.created = None if body.algorithm: lb.algorithm = body.algorithm.upper()