Files
freeipa/ipatests
Christian Heimes 6aebfe74fb Add context manager to ipalib.API
`ipalib.API` instances like `ipalib.api` now provide a context manager
that connects and disconnects the API object. Users no longer have to
deal with different types of backends or finalize the API correctly.

```python
import ipalib

with ipalib.api as api:
    api.Commands.ping()
```

See: https://pagure.io/freeipa/issue/9443
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2023-09-29 12:57:06 +02:00
..
2023-05-16 13:12:12 +02:00
2019-07-16 13:23:21 +03:00
2023-05-31 09:17:25 +02:00
2020-10-26 17:11:19 +11:00
2013-06-17 19:22:50 +02:00
2022-03-11 13:37:08 -05:00
2015-10-22 18:34:46 +02:00
2022-03-11 13:37:08 -05:00
2016-10-20 18:43:37 +02:00
2021-06-16 10:28:17 -04:00