[releng] convert-to-tarballs: fix sftp host check
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [releng] convert-to-tarballs: fix sftp host check
- Date: Wed, 3 Sep 2014 20:55:16 +0000 (UTC)
commit 212a94cdf3024336c69c352457264f1694364854
Author: Frédéric Péters <fpeters 0d be>
Date: Wed Sep 3 22:54:14 2014 +0200
convert-to-tarballs: fix sftp host check
tools/smoketesting/convert-to-tarballs.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tools/smoketesting/convert-to-tarballs.py b/tools/smoketesting/convert-to-tarballs.py
index 2476302..f26f9f4 100755
--- a/tools/smoketesting/convert-to-tarballs.py
+++ b/tools/smoketesting/convert-to-tarballs.py
@@ -369,7 +369,7 @@ class TarballLocator:
try:
cfg = self.sftp_cfg.lookup(hostname)
cfg.get('user') # require a username to be defined
- if not self.sftp_hosts.has_key(hostname): raise KeyError('unknown hostname')
+ if not hostname in self.sftp_hosts: raise KeyError('unknown hostname')
except KeyError:
do_sftp = False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]