mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Allow for machine_id key when getting the machine_identifier
This commit is contained in:
parent
0de790cd28
commit
8fb0127f99
1 changed files with 3 additions and 1 deletions
|
@ -249,7 +249,9 @@ def _test_lock(opts):
|
||||||
g.fetch_remotes()
|
g.fetch_remotes()
|
||||||
assert len(g.remotes) == 1
|
assert len(g.remotes) == 1
|
||||||
repo = g.remotes[0]
|
repo = g.remotes[0]
|
||||||
mach_id = salt.utils.files.get_machine_identifier()
|
mach_id = salt.utils.files.get_machine_identifier().get(
|
||||||
|
"machine_id", "no_machine_id_available"
|
||||||
|
)
|
||||||
assert repo.get_salt_working_dir() in repo._get_lock_file()
|
assert repo.get_salt_working_dir() in repo._get_lock_file()
|
||||||
assert repo.lock() == (
|
assert repo.lock() == (
|
||||||
[
|
[
|
||||||
|
|
Loading…
Add table
Reference in a new issue