Files
freeipa/ipalib
Christian Heimes ed094e11ec 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-10-02 17:40:57 -04:00
..
2023-10-02 17:40:57 -04:00
2023-01-10 08:30:58 +01:00
2022-03-11 13:37:08 -05:00
2022-03-11 13:37:08 -05:00
2023-01-10 08:30:58 +01:00
2018-09-27 11:49:04 +02:00
2016-10-20 18:43:37 +02:00
2022-03-11 13:37:08 -05:00
2023-04-05 14:55:22 -04:00