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

Commita7bd571

Browse files
author
vshepard
committed
Add env variable TESTGRES_SKIP_SSL
1 parent1e8d912 commita7bd571

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎testgres/operations/os_ops.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
importgetpass
22
importlocale
3+
importos
34
importsys
45

56
try:
@@ -12,7 +13,7 @@
1213

1314

1415
classConnectionParams:
15-
def__init__(self,host='127.0.0.1',port=None,ssh_key=None,username=None,remote=False,skip_ssl=False):
16+
def__init__(self,host='127.0.0.1',port=None,ssh_key=None,username=None,remote=False,skip_ssl=None):
1617
"""
1718
skip_ssl: if is True, the connection is established without SSL.
1819
"""
@@ -21,6 +22,8 @@ def __init__(self, host='127.0.0.1', port=None, ssh_key=None, username=None, rem
2122
self.port=port
2223
self.ssh_key=ssh_key
2324
self.username=username
25+
ifnotskip_ssl:
26+
skip_ssl=os.getenv("TESTGRES_SKIP_SSL",False)
2427
self.skip_ssl=skip_ssl
2528

2629

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp