API: minor fixes
* Send NULL to created timestamp to set current timestamp * Remove debugging 'print' left behind Change-Id: Id894060ed201c865b51b1da163d1dab8c3ae26e9
This commit is contained in:
parent
746b33ef4d
commit
cbe623c226
@ -202,7 +202,6 @@ class LoadBalancersController(RestController):
|
|||||||
filter(LoadBalancer.tenantid == tenant_id).\
|
filter(LoadBalancer.tenantid == tenant_id).\
|
||||||
filter(Device.id == virtual_id).\
|
filter(Device.id == virtual_id).\
|
||||||
first()
|
first()
|
||||||
print old_lb
|
|
||||||
if old_lb is None:
|
if old_lb is None:
|
||||||
response.status = 400
|
response.status = 400
|
||||||
return Responses.service_unavailable
|
return Responses.service_unavailable
|
||||||
@ -237,6 +236,7 @@ class LoadBalancersController(RestController):
|
|||||||
lb.port = 443
|
lb.port = 443
|
||||||
|
|
||||||
lb.status = 'BUILD'
|
lb.status = 'BUILD'
|
||||||
|
lb.created = None
|
||||||
|
|
||||||
if body.algorithm:
|
if body.algorithm:
|
||||||
lb.algorithm = body.algorithm.upper()
|
lb.algorithm = body.algorithm.upper()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user