From 2eba8aa1f57bda20cbfe435844b400d2deccba37 Mon Sep 17 00:00:00 2001 From: Nicolas Iooss Date: Sat, 14 Jun 2014 18:58:26 +0200 Subject: [PATCH] libsemanage: use semanage_bool_get_value to print a boolean ... and not semanage_bool_set_value. This fixes "python2 pywrap-test.py -v -B -C" --- libsemanage/src/pywrap-test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsemanage/src/pywrap-test.py b/libsemanage/src/pywrap-test.py index 5d8aad18..c00d2c7d 100644 --- a/libsemanage/src/pywrap-test.py +++ b/libsemanage/src/pywrap-test.py @@ -829,7 +829,7 @@ class Tests: if self.verbose: print "SEBool name set: ", semanage.semanage_bool_get_name(pbool) semanage.semanage_bool_set_value(pbool, 0) - if self.verbose: print "SEbool value set: ", semanage.semanage_bool_set_value(pbool) + if self.verbose: print "SEbool value set: ", semanage.semanage_bool_get_value(pbool) (status,key) = semanage.semanage_bool_key_extract(sh, pbool) if status < 0: @@ -912,7 +912,7 @@ class Tests: if self.verbose: print "SEBool name set: ", semanage.semanage_bool_get_name(abool) semanage.semanage_bool_set_value(abool, 0) - if self.verbose: print "SEbool value set: ", semanage.semanage_bool_set_value(abool) + if self.verbose: print "SEbool value set: ", semanage.semanage_bool_get_value(abool) print "Starting transaction..." status = semanage.semanage_begin_transaction(sh)