By default, we want to report 1 reboot during installation, not -1. Since this property is _CONSTRUCT, the -1 value will be stored in the entity store, and osinfo_entity_get_value_*_with_default will never return their default value, so it's important to get it right in this place. --- osinfo/osinfo_media.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osinfo/osinfo_media.c b/osinfo/osinfo_media.c index 5a54893..2c03916 100644 --- a/osinfo/osinfo_media.c +++ b/osinfo/osinfo_media.c @@ -498,7 +498,7 @@ osinfo_media_class_init (OsinfoMediaClass *klass) _("Number of installer reboots"), G_MININT, G_MAXINT, - -1 /* default value */, + 1 /* default value */, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | /* to set default value */ G_PARAM_STATIC_STRINGS); -- 1.8.0 _______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list