diff --git a/README.md b/README.md index f356d368..70596638 100644 --- a/README.md +++ b/README.md @@ -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()`. @@ -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. diff --git a/examples/list_sysdig_captures.py b/examples/list_sysdig_captures.py index 9c639840..209036e9 100755 --- a/examples/list_sysdig_captures.py +++ b/examples/list_sysdig_captures.py @@ -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'])