Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6a8e125

Browse files
author
v.shepard
committed
PBCKP-566 test multihost
1 parente88b461 commit6a8e125

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

‎testgres/node.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def __repr__(self):
110110

111111
classPostgresNode(object):
112112
def__init__(self,name=None,port=None,base_dir=None,
113-
host='127.0.0.1',hostname='locahost'):
113+
host='127.0.0.1',hostname='locahost',ssh_key=None):
114114
"""
115115
PostgresNode constructor.
116116
@@ -130,6 +130,7 @@ def __init__(self, name=None, port=None, base_dir=None,
130130
# basic
131131
self.host=host
132132
self.hostname=hostname
133+
self.ssh_key=ssh_key
133134
self.name=nameorgenerate_app_name()
134135
self.port=portorreserve_port()
135136

‎testgres/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ def execute_utility(args, logfile=None, hostname='localhost', ssh_key=None):
6868
"""
6969

7070

71-
ifhostname!='localhost':
71+
ifhostname!='localhost':
7272
conn=Connection(
73-
host="enterprise-14",
73+
host="enterprise-14-2",
7474
user="dev",
7575
connect_kwargs={
7676
# XXX pass SSH key path
@@ -80,11 +80,11 @@ def execute_utility(args, logfile=None, hostname='localhost', ssh_key=None):
8080

8181
# TODO skip remote ssh run if we are on the localhost.
8282
#result = conn.run(hostname, hide=True)
83-
# add logger
83+
# add logger
8484
#
8585
cmd=' '.join(args)
8686
result=conn.run(cmd,hide=True)
87-
87+
8888
returnresult
8989

9090

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp