Skip to content

Commit b7ae27e

Browse files
fix tests
1 parent 53aebf0 commit b7ae27e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ A dictionary containing information about the user, for example its email and th
272272

273273
#### `poll_sysdig_capture(self, capture)`
274274
**Description**
275-
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`.
275+
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`.
276276
**Arguments**
277277
- **capture**: the capture object as returned by `get_sysdig_captures()` or `create_sysdig_capture()`.
278278

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

306306
**Success Return Value**
307307
The updated notification.

examples/list_sysdig_captures.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
# Show the list of metrics
3333
#
3434
if res[0]:
35-
data = res[1]
35+
captures = res[1]['dumps']
3636
else:
3737
print res[1]
3838
sys.exit(1)
3939

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

0 commit comments

Comments
 (0)