Skip to content

Commit

Permalink
Authorize deployment delete
Browse files Browse the repository at this point in the history
  • Loading branch information
pfnsec committed Sep 9, 2020
1 parent ff3d3a7 commit da8eb79
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion batik/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
batik undeploy <deployId>
batik login [create]
batik hub [add]
batik hub [publish]
batik hub [list <query> [-p <page>]]
batik hub [mkimg]
batik hub [resolve]
batik hub [publish]
batik hub [me]
batik hub [search <query>]
batik hub [get <package>]
Expand Down
3 changes: 1 addition & 2 deletions batik/commands/undeploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ class Undeploy(Base):
def run(self):
deployment.undeploy(self.options["<deployId>"])


print('You supplied the following options:', dumps(self.options, indent=2, sort_keys=True))
#print('You supplied the following options:', dumps(self.options, indent=2, sort_keys=True))
4 changes: 3 additions & 1 deletion batik/remote/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ def undeploy(id):
params = {
}

r = requests.delete(f"{base.CLUSTER_URL}/cmd/deployment/{id}", params)
headers = {"Authorization": base.get_auth_token()}

r = requests.delete(f"{base.CLUSTER_URL}/cmd/deployment/{id}", headers = headers)

#r = requests.delete(f"{base.CLUSTER_URL}/deployment/{id}", params)

Expand Down

0 comments on commit da8eb79

Please sign in to comment.