Skip to content

Commit

Permalink
Merge pull request #420 from unclebconnor/remove-delete-edit-comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gzussa authored Sep 3, 2019
2 parents d870776 + b51996a commit 583bc0e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
5 changes: 2 additions & 3 deletions datadog/api/comments.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from datadog.api.resources import CreateableAPIResource, UpdatableAPIResource, \
DeletableAPIResource
from datadog.api.resources import CreateableAPIResource, UpdatableAPIResource


class Comment(CreateableAPIResource, UpdatableAPIResource, DeletableAPIResource):
class Comment(CreateableAPIResource, UpdatableAPIResource):
"""
A wrapper around Comment HTTP API.
"""
Expand Down
4 changes: 2 additions & 2 deletions datadog/api/events.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from datadog.api.resources import GetableAPIResource, CreateableAPIResource, \
SearchableAPIResource, DeletableAPIResource
SearchableAPIResource
from datadog.util.compat import iteritems


class Event(GetableAPIResource, CreateableAPIResource, SearchableAPIResource, DeletableAPIResource):
class Event(GetableAPIResource, CreateableAPIResource, SearchableAPIResource):
"""
A wrapper around Event HTTP API.
"""
Expand Down
9 changes: 0 additions & 9 deletions datadog/dogshell/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,3 @@ def _show(cls, args):
print('url\t\t' + res['event']['url'])
print('resource\t' + res['event']['resource'])
print('message\t\t' + res['event']['text'].__repr__())

@classmethod
def _delete(cls, args):
api._timeout = args.timeout
id = args.comment_id
res = api.Comment.delete(id)
if res is not None:
report_warnings(res)
report_errors(res)

0 comments on commit 583bc0e

Please sign in to comment.