src/virt.c: Fix build error on ubuntu:trusty
authorAntoine Naud <antoinex.naud@intel.com>
Wed, 14 Mar 2018 11:49:13 +0000 (11:49 +0000)
committerRadoslaw Jablonski <radoslawx.jablonski@intel.com>
Thu, 19 Apr 2018 12:03:40 +0000 (13:03 +0100)
Change-Id: Ic76a5b9861360181c677b643245b24f40b80777b
Signed-off-by: Antoine Naud <antoinex.naud@intel.com>
src/virt.c

index 63180b8..f39f9c2 100644 (file)
@@ -1892,7 +1892,7 @@ static int persistent_domains_state_notification(void) {
 #ifdef HAVE_LIST_ALL_DOMAINS
   virDomainPtr *domains;
   n = virConnectListAllDomains(conn, &domains,
-                               VIR_CONNECT_GET_ALL_DOMAINS_STATS_PERSISTENT);
+                               VIR_CONNECT_LIST_DOMAINS_PERSISTENT);
   if (n < 0) {
     VIRT_ERROR(conn, "reading list of persistent domains");
     status = -1;