From 7739038c60331b71add3d5183412e50a38bfa2f3 Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Mon, 23 Nov 2020 09:40:16 +0000 Subject: Fixes python warning This patch fixes the warning: SyntaxWarning: "is" with a literal. Did you mean "=="? --- lavalab-gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lavalab-gen.py b/lavalab-gen.py index 64bb1f1..e4b3487 100755 --- a/lavalab-gen.py +++ b/lavalab-gen.py @@ -525,7 +525,7 @@ def main(): else: zmq_auth_genlist.write("%s/%s %s/%s\n" % (host, name, fm["host"], fm["name"])) need_zmq_auth_gen = True - if remote_token is "BAD": + if remote_token == "BAD": print("Cannot find %s on %s" % (remote_user, remote_master)) sys.exit(1) if "env" in slave: -- cgit 1.2.3-korg