From 47ce43b689fc464546234b38e2d07b74d31d2e05 Mon Sep 17 00:00:00 2001
From: Renzo Frigato <rfrigato@stanford.edu>
Date: Wed, 20 Jan 2016 17:41:46 -0800
Subject: [PATCH] fix issue on container_type format

closes #129
---
 api/handlers/listhandler.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/handlers/listhandler.py b/api/handlers/listhandler.py
index 64f3c02a..3d0dc200 100644
--- a/api/handlers/listhandler.py
+++ b/api/handlers/listhandler.py
@@ -398,5 +398,5 @@ class FileListHandler(ListHandler):
             result = keycheck(mongo_validator(permchecker(storage.exec_op)))(method, _id=_id, query_params=query_params, payload=payload)
             if not result or result.modified_count != 1:
                 self.abort(404, 'Element not added in list {} of container {} {}'.format(storage.list_name, storage.cont_name, _id))
-            rules.create_jobs(config.db, container, cont_name, file_properties)
+            rules.create_jobs(config.db, container, cont_name[:-1], file_properties)
         return {'modified': result.modified_count}
-- 
GitLab