From 086e5e33781943453ef29d944f6df15568e60ed2 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 23 Jul 2019 20:08:00 +0300 Subject: Fix: posting /publish --- api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api.py b/api.py index beae910..4fde7e0 100755 --- a/api.py +++ b/api.py @@ -481,11 +481,12 @@ class Controller(API): 'published_name': name, } - url = '{}/updaterepo'.format(self.DEPLOYER) + url = '{}/publish'.format(self.DEPLOYER) argv = [ 'curl', '-HAuthorization: Bearer {}'.format(self._token), '-HContent-Type: application/json', + '-X', 'POST', '--data-binary', json.dumps(spec), url, ] -- cgit v1.2.1