Fix pre-commit and lint

This commit is contained in:
Daniel A. Wozniak 2025-02-05 18:24:45 -07:00
parent ed8a0e0d9c
commit 98a0673eca

View file

@ -6,15 +6,19 @@ import os
import pathlib
import time
import pytest
import salt.crypt
@pytest.fixture
def login():
path = pathlib.Path("/proc/self/loginuid")
if not path.exists():
path.write_text(f"{os.getuid()}")
path.write_text(f"{os.getuid()}", encoding="utf-8")
return os.getlogin()
def test_cluster_key_rotation(
cluster_master_1,
cluster_master_2,