Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gianlucaborello committed Apr 13, 2016
1 parent 53aebf0 commit b7ae27e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ A dictionary containing information about the user, for example its email and th

#### `poll_sysdig_capture(self, capture)`
**Description**
Fetch the updates state of a sysdig capture. Can be used to poll the status of a capture that has been previously created and started with `create_sysdig_capture`.
Fetch the updated state of a sysdig capture. Can be used to poll the status of a capture that has been previously created and started with `create_sysdig_capture`.
**Arguments**
- **capture**: the capture object as returned by `get_sysdig_captures()` or `create_sysdig_capture()`.

Expand Down Expand Up @@ -301,7 +301,7 @@ A dictionary describing the new event.
Updates the resolution status of an alert notification.
**Arguments**
- **notification**: notification object as returned by `get_notifications()`.
- **resolved**: new resolution status. Supported values are `True` and `False.
- **resolved**: new resolution status. Supported values are `True` and `False`.

**Success Return Value**
The updated notification.
Expand Down
4 changes: 2 additions & 2 deletions examples/list_sysdig_captures.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
# Show the list of metrics
#
if res[0]:
data = res[1]
captures = res[1]['dumps']
else:
print res[1]
sys.exit(1)

for capture in data:
for capture in captures:
print "Folder %s, Name %s, Host: %s, Size: %d, Status: %s" % \
(capture['folder'], capture['name'], capture['agent']['hostName'], capture['size'], capture['status'])

0 comments on commit b7ae27e

Please sign in to comment.