Skip to content

Commit

Permalink
Removed debug
Browse files Browse the repository at this point in the history
  • Loading branch information
testcraftsman committed Aug 31, 2018
1 parent 179f107 commit c53d9e5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions testpool/db/testpool_pool/api.py
Expand Up @@ -185,8 +185,6 @@ def pool_add(request, pool_name):

LOGGER.info("testpool_pool.api.pool_add %s", pool_name)

print "MARK: 1"

if request.method != 'POST':
msg = "pool_add method %s unsupported" % request.method
logging.error(msg)
Expand All @@ -208,21 +206,17 @@ def pool_add(request, pool_name):
msg = "pool_add requires product"
return JsonResponse({"msg": msg}, status=404)

print "MARK: 2"
resource_max = request.GET["resource_max"]
template_name = request.GET["template_name"]
connection = request.GET["connection"]
product = request.GET["product"]

print "MARK: 2", product
try:
resource_max = int(resource_max)
pool1 = testpool.core.algo.pool_add(connection, product, pool_name,
resource_max, template_name)
print "MARK: 3", product, pool1
serializer = PoolSerializer(pool1)

print "MARK: 4", product, pool1
return JSONResponse(serializer.data)
except Pool.DoesNotExist, arg:
logging.exception(arg)
Expand All @@ -231,6 +225,5 @@ def pool_add(request, pool_name):
return JsonResponse({"msg": msg}, status=403)
except Exception, arg:
logging.exception(arg)
print "MARK: 4", product, pool1, arg
logging.error(arg)
return JsonResponse({"msg": arg}, status=500)

0 comments on commit c53d9e5

Please sign in to comment.