Skip to content

Commit

Permalink
Don't hardcode the python version in the test.
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Algarvio <[email protected]>
  • Loading branch information
s0undt3ch committed Jun 19, 2023
1 parent a1861c7 commit c6e2bd1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/tests/integration/test_salt_user.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pathlib
import subprocess
import sys

import psutil
import pytest
Expand Down Expand Up @@ -61,7 +62,9 @@ def test_salt_cloud_dirs(install_salt):
Test the correct user is running the Salt Master
"""
paths = [
"/opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/deploy",
"/opt/saltstack/salt/lib/python{}.{}/site-packages/salt/cloud/deploy".format(
*sys.version_info
),
"/etc/salt/cloud.deploy.d",
]
for name in paths:
Expand Down

0 comments on commit c6e2bd1

Please sign in to comment.