mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix pre-commit and lint
This commit is contained in:
parent
ed8a0e0d9c
commit
98a0673eca
1 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue