Fix up use of get_machine_identifer

This commit is contained in:
David Murphy 2024-02-08 09:38:09 -07:00 committed by Daniel Wozniak
parent 0206162c2d
commit 0ba93f829c
2 changed files with 3 additions and 3 deletions

View file

@ -1072,7 +1072,7 @@ class SignalHandlingProcess(Process):
msg += ". Exiting"
log.debug(msg)
mach_id = salt.utils.platform.get_machine_identifier()
mach_id = salt.utils.files.get_machine_identifier()
log.debug(
f"exiting for process id '{os.getpid()}' and machine identifer '{mach_id}'"
)

View file

@ -2,7 +2,7 @@ import os.path
import pytest
import salt.utils.platform
import salt.utils.files
from salt.fileserver.gitfs import PER_REMOTE_ONLY, PER_REMOTE_OVERRIDES
from salt.utils.gitfs import GitFS, GitPython, Pygit2
from salt.utils.immutabletypes import ImmutableDict, ImmutableList
@ -249,7 +249,7 @@ def _test_lock(opts):
g.fetch_remotes()
assert len(g.remotes) == 1
repo = g.remotes[0]
mach_id = salt.utils.platform.get_machine_identifier()
mach_id = salt.utils.files.get_machine_identifier()
assert repo.get_salt_working_dir() in repo._get_lock_file()
assert repo.lock() == (
[