Skip to content

Commit

Permalink
Merge pull request #509 from simondeziel/typo
Browse files Browse the repository at this point in the history
doc/events: fix arg name for events()
  • Loading branch information
stgraber authored Apr 29, 2022
2 parents 8336221 + e461635 commit a44deea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/source/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit a44deea

Please sign in to comment.