changeset 2905:d9491cb81726

jp (common): `publish` is now a boolean
author Goffi <goffi@goffi.org>
date Wed, 10 Apr 2019 22:15:29 +0200
parents 5bba8953061e
children 7dbdbd132649
files sat_frontends/jp/common.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat_frontends/jp/common.py	Wed Apr 10 21:07:47 2019 +0200
+++ b/sat_frontends/jp/common.py	Wed Apr 10 22:15:29 2019 +0200
@@ -270,7 +270,7 @@
                     )
                     self.host.quit(C.EXIT_DATA_ERROR)
 
-            if self.use_metadata and not C.bool(metadata.get("publish", "true")):
+            if self.use_metadata and not metadata.get("publish", True):
                 self.disp(
                     u'Publication blocked by "publish" key in metadata, cancelling edition.\n\n'
                     + "temporary file path:\t{content_path}\nmetadata file path:\t{meta_path}".format(