summaryrefslogtreecommitdiffstats
path: root/lavalab-gen.py
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2020-11-23 09:40:16 +0000
committerCorentin LABBE <clabbe@baylibre.com>2020-11-23 10:01:35 +0000
commit7739038c60331b71add3d5183412e50a38bfa2f3 (patch)
tree075621a294fd16b0e177529af3073427aedd3c64 /lavalab-gen.py
parent3825e16f0833072d2b3bed0c4aaea2c4d5c22b0c (diff)
Fixes python warning
This patch fixes the warning: SyntaxWarning: "is" with a literal. Did you mean "=="?
Diffstat (limited to 'lavalab-gen.py')
-rwxr-xr-xlavalab-gen.py2
1 files changed, 1 insertions, 1 deletions
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: