Merge pull request #3171 from kgaillot/purge
Fix: libcrmcommon: wait for reply from appropriate controller commands