Skip to content

Commit

Permalink
Merge 9d3ee92 into 21ecb2d
Browse files Browse the repository at this point in the history
  • Loading branch information
dimon222 committed Jan 11, 2020
2 parents 21ecb2d + 9d3ee92 commit da3026a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_resource_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_cluster_application_state(self, request_mock):

def test_cluster_application_kill(self, request_mock):
self.rm.cluster_application_kill('app_1')
request_mock.assert_called_with('/ws/v1/cluster/apps/app_1/state', 'PUT', data={
request_mock.assert_called_with('/ws/v1/cluster/apps/app_1/state', 'PUT', json={
"state": 'KILLED'
})

Expand Down
2 changes: 1 addition & 1 deletion yarn_api_client/resource_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def cluster_application_kill(self, application_id):
path = '/ws/v1/cluster/apps/{appid}/state'.format(
appid=application_id)

return self.request(path, 'PUT', data=data)
return self.request(path, 'PUT', json=data)

def cluster_nodes(self, states=None):
"""
Expand Down

0 comments on commit da3026a

Please sign in to comment.