[releng] convert-to-tarballs.py: support %h in ssh config file
- From: Olav Vitters <ovitters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [releng] convert-to-tarballs.py: support %h in ssh config file
- Date: Mon, 13 Jun 2011 20:29:56 +0000 (UTC)
commit c6dda87df3d535bebfd2bee1d9e4559c21022d77
Author: Olav Vitters <olav vitters nl>
Date: Mon Jun 13 22:29:50 2011 +0200
convert-to-tarballs.py: support %h in ssh config file
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 d730b32..0ce1827 100755
--- a/tools/smoketesting/convert-to-tarballs.py
+++ b/tools/smoketesting/convert-to-tarballs.py
@@ -541,7 +541,7 @@ class TarballLocator:
hostkeytype = self.sftp_hosts[hostname].keys()[0]
hostkey = self.sftp_hosts[hostname][hostkeytype]
cfg = self.sftp_cfg.lookup(hostname)
- hostname = cfg.get('hostname', hostname)
+ hostname = cfg.get('hostname', hostname).replace('%h', hostname)
port = parsed_url.port or cfg.get('port', 22)
username = parsed_url.username or cfg.get('user')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]