Blame SOURCES/1012-team-fix-validate-send-always-flags-rh1720153.patch

7b922c
From 42c7f7dfee122b9da446c0e985187e0dc66ecb09 Mon Sep 17 00:00:00 2001
7b922c
From: Beniamino Galvani <bgalvani@redhat.com>
7b922c
Date: Fri, 14 Jun 2019 16:31:53 +0200
7b922c
Subject: [PATCH] libnm-core: fix conversion to json of team watcher flags
7b922c
7b922c
Team watcher flags are boolean objects: persist them as such and not
7b922c
as strings.
7b922c
7b922c
Fixes: e59878ce1911f3930c60a104673b59fb3c5ae001
7b922c
https://bugzilla.redhat.com/show_bug.cgi?id=1720153
7b922c
(cherry picked from commit 28c3692023fe65d5a6def93774ff1ac7f07e27f0)
7b922c
---
7b922c
 libnm-core/nm-utils.c | 6 +++---
7b922c
 1 file changed, 3 insertions(+), 3 deletions(-)
7b922c
7b922c
diff --git a/libnm-core/nm-utils.c b/libnm-core/nm-utils.c
7b922c
index 394ca7c3a..6d8a0fe32 100644
7b922c
--- a/libnm-core/nm-utils.c
7b922c
+++ b/libnm-core/nm-utils.c
7b922c
@@ -5786,11 +5786,11 @@ _nm_utils_team_link_watcher_to_json (NMTeamLinkWatcher *watcher)
7b922c
 
7b922c
 	flags = nm_team_link_watcher_get_flags (watcher);
7b922c
 	if (flags & NM_TEAM_LINK_WATCHER_ARP_PING_FLAG_VALIDATE_ACTIVE)
7b922c
-		json_object_set_new (json_element, "validate_active", json_string ("true"));
7b922c
+		json_object_set_new (json_element, "validate_active", json_true ());
7b922c
 	if (flags & NM_TEAM_LINK_WATCHER_ARP_PING_FLAG_VALIDATE_INACTIVE)
7b922c
-		json_object_set_new (json_element, "validate_inactive", json_string ("true"));
7b922c
+		json_object_set_new (json_element, "validate_inactive", json_true ());
7b922c
 	if (flags & NM_TEAM_LINK_WATCHER_ARP_PING_FLAG_SEND_ALWAYS)
7b922c
-		json_object_set_new (json_element, "send_always", json_string ("true"));
7b922c
+		json_object_set_new (json_element, "send_always", json_true ());
7b922c
 
7b922c
 	return json_element;
7b922c
 
7b922c
-- 
7b922c
2.20.1
7b922c