Skip to content

Commit b389531

Browse files
kevin-bateslresende
authored andcommitted
Fix cluster_application_kill method
The recently introduced cluster_application_kill() method was erroneously calling `self.put()` to issue the status change to `KILLED`. This resulted in an AttributeError exception: ``` ''ResourceManager' object has no attribute 'put'' ``` in client code. The base class issues put calls, via its `update()` method. Once updated, application kill requests succeed.
1 parent e017dcf commit b389531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yarn_api_client/resource_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def cluster_application_kill(self, application_id):
213213
path = '/ws/v1/cluster/apps/{appid}/state'.format(
214214
appid=application_id)
215215

216-
return self.put(path, data)
216+
return self.update(path, data)
217217

218218
def cluster_nodes(self, state=None, healthy=None):
219219
"""

0 commit comments

Comments
 (0)