Skip to content

Commit ddb598a

Browse files
author
aviau
committed
delete_cluster_admin should expect 200, fixed influxdata#74
1 parent 9d980a8 commit ddb598a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

influxdb/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def delete_cluster_admin(self, username):
504504
self.request(
505505
url=url,
506506
method='DELETE',
507-
status_code=204
507+
status_code=200
508508
)
509509

510510
return True

tests/influxdb/client_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def test_delete_cluster_admin(self):
336336
m.register_uri(
337337
requests_mock.DELETE,
338338
"http://localhost:8086/cluster_admins/paul",
339-
status_code=204,
339+
status_code=200,
340340
)
341341

342342
cli = InfluxDBClient(database='db')

0 commit comments

Comments
 (0)