8000 Fix is_enterprise checking in ptrack_helpers.py · postgrespro/pg_probackup@02aef65 · GitHub
[go: up one dir, main page]

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

Appearance settings

Commit 02aef65

Browse files
committed
Fix is_enterprise checking in ptrack_helpers.py
1 parent 94fd54a commit 02aef65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/helpers/ptrack_helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,17 @@ def dir_files(base_dir):
9090
def is_enterprise():
9191
# pg_config --help
9292
if os.name == 'posix':
93-
cmd = [os.environ['PG_CONFIG'], '--help']
93+
cmd = [os.environ['PG_CONFIG'], '--pgpro-edition']
9494

9595
elif os.name == 'nt':
96-
cmd = [[os.environ['PG_CONFIG']], ['--help']]
96+
cmd = [[os.environ['PG_CONFIG']], ['--pgpro-edition']]
9797

9898
p = subprocess.Popen(
9999
cmd,
100100
stdout=subprocess.PIPE,
101101
stderr=subprocess.PIPE
102102
)
103-
if b'postgrespro.ru' in p.communicate()[0]:
103+
if b'enterprise' in p.communicate()[0]:
104104
return True
105105
else:
106106
return False

0 commit comments

Comments
 (0)
0