From e4616357d0188fa6935eb066655d98f293b4f3ac Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Thu, 28 Apr 2022 17:46:34 -0400 Subject: [PATCH] doc/events: fix arg name for events() Signed-off-by: Simon Deziel --- doc/source/events.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/source/events.rst b/doc/source/events.rst index 72b54ed5..4a4e35af 100644 --- a/doc/source/events.rst +++ b/doc/source/events.rst @@ -26,12 +26,12 @@ LXD server: .. code-block:: python - >>> filter = set([EventType.Operation, EventType.Logging]) - >>> ws_client = client.events(event_filter=filter) + >>> types = set([EventType.Operation, EventType.Logging]) + >>> ws_client = client.events(event_types=types) To receive only events pertaining to the lifecycle of the containers: .. code-block:: python - >>> filter = set([EventType.Lifecycle]) - >>> ws_client = client.events(event_filter=filter) + >>> types = set([EventType.Lifecycle]) + >>> ws_client = client.events(event_types=types)