Skip to content

Commit

Permalink
php/java cps-tools: fix upload_key
Browse files Browse the repository at this point in the history
  • Loading branch information
tcrivat committed Jul 18, 2016
1 parent c19f577 commit 55e1486
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cps-tools/src/cps_tools/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def upload_key(self, args):
params = { 'service_id': service_id,
'method': "upload_authorized_key" }
files = [('key', args.filename, contents)]
res = self.client.call_manager_post(service_id, "/", params, files)
res = self.client.call_manager_post(app_id, service_id, "/", params, files)

print res['outcome']

Expand Down Expand Up @@ -74,9 +74,9 @@ def _add_upload_code(self):
def upload_code(self, args):
app_id, service_id = self.check_service(args.app_name_or_id, args.serv_name_or_id)

contents = open(args.filename).read()
params = { 'service_id': service_id,
'method': "upload_code_version" }
contents = open(args.filename).read()
files = [('code', args.filename, contents)]
res = self.client.call_manager_post(app_id, service_id, "/", params, files)

Expand Down

0 comments on commit 55e1486

Please sign in to comment.