Commit 774c5dd0 authored by Katerina Koukiou's avatar Katerina Koukiou

virtDBusNetworkGetDHCPLeases: fix type for expirytime

Signed-off-by: default avatarKaterina Koukiou <>
Reviewed-by: Pavel Hrdina's avatarPavel Hrdina <>
parent 1bebe5ae
......@@ -42,7 +42,7 @@
Empty string will be returned in output for NULL variables."/>
<arg name="mac" type="s" direction="in"/>
<arg name="flags" type="u" direction="in"/>
<arg name="leases" type="a(stisssuss)" direction="out"/>
<arg name="leases" type="a(sxisssuss)" direction="out"/>
<method name="GetXMLDesc">
<annotation name="org.gtk.GDBus.DocString"
......@@ -228,11 +228,11 @@ virtDBusNetworkGetDHCPLeases(GVariant *inArgs,
if (nleases < 0)
return virtDBusUtilSetLastVirtError(error);
g_variant_builder_init(&builder, G_VARIANT_TYPE("a(stisssuss)"));
g_variant_builder_init(&builder, G_VARIANT_TYPE("a(sxisssuss)"));
for (gint i = 0; i < nleases; i++) {
virNetworkDHCPLeasePtr lease = leases[i];
g_variant_builder_add(&builder, "(stisssuss)",
g_variant_builder_add(&builder, "(sxisssuss)",
lease->iface, lease->expirytime,
lease->type, lease->mac,
lease->iaid ? lease->iaid : "" ,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment