aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlice Ferrazzi <alicef@gentoo.org>2017-08-14 18:46:47 +0900
committerAlice Ferrazzi <alicef@gentoo.org>2017-08-14 18:46:47 +0900
commit56c1604c97b02f1e1e6979193b0a7e6fc8b0567c (patch)
tree3d0451faa256525b7261cd02fc59a7c156e867f8
parentcommand is just a local function so refactoring the name (diff)
downloadelivepatch-56c1604c97b02f1e1e6979193b0a7e6fc8b0567c.tar.gz
elivepatch-56c1604c97b02f1e1e6979193b0a7e6fc8b0567c.tar.bz2
elivepatch-56c1604c97b02f1e1e6979193b0a7e6fc8b0567c.zip
remove deprecated function
-rw-r--r--elivepatch_server/resources/dispatcher.py21
1 files changed, 1 insertions, 20 deletions
diff --git a/elivepatch_server/resources/dispatcher.py b/elivepatch_server/resources/dispatcher.py
index dbe9af4..9a7580c 100644
--- a/elivepatch_server/resources/dispatcher.py
+++ b/elivepatch_server/resources/dispatcher.py
@@ -168,23 +168,4 @@ class GetFiles(Resource):
'KernelVersion': None,
'UUID' : args['UUID']
}
- return {'get_config': marshal(pack, pack_fields)}, 201
-
-
-class GetID(Resource):
-
- def __init__(self):
- self.reqparse = reqparse.RequestParser()
- self.reqparse.add_argument('UUID', type=str, required=False,
- help='No task title provided',
- location='json')
- super(GetID, self).__init__()
- pass
-
- def get(self):
- return make_response(jsonify({'message': 'These are not the \
- patches you are looking for'}), 403)
-
- def post(self):
- args = self.reqparse.parse_args()
- print("get ID: " + str(args))
+ return {'get_config': marshal(pack, pack_fields)}, 201 \ No newline at end of file