Wait for arnied in addition to generate to preserve backward compatibility
authorPlamen Dimitrov <plamen.dimitrov@intra2net.com>
Thu, 21 Apr 2022 07:48:40 +0000 (10:48 +0300)
committerPlamen Dimitrov <plamen.dimitrov@intra2net.com>
Tue, 17 May 2022 02:44:36 +0000 (05:44 +0300)
commit3e582fbf640028cd9f3cdd3e3a3360abcf423dae
tree3a1b8b362b27262ff65a1a1f1b1d627f2955479b
parentdaf0bfad8fbd10e765d9e43eb0f17c6f15eeb515
Wait for arnied in addition to generate to preserve backward compatibility

We simplify this a bit though by waiting for the arnied availability
just once during initialization of the cnf store and not on each
get/set/unset_cnf call (now query, commit, and delete calls).

As this is done for backward compability which is guaranteed for
the binary cnfvar driver only, we leave a TODO where we will have
to consider what is the best future for the varlink driver: either
busy-loop on socket availability to once again wait with a timeout
or drop this assumption entirely for better control and easier use.
src/cnfvar/store.py