Skip to content

Commit be488b9

Browse files
twangboydwoz
authored andcommitted
Add changelog
1 parent 2482d2e commit be488b9

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

changelog/66936.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix an issue with the osrelease_info grain that was displaying empty strings

tests/pytests/unit/grains/test_core.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,7 @@ def test_windows_platform_data():
15521552
"2016Server",
15531553
"2019Server",
15541554
"2022Server",
1555-
"2025Server"
1555+
"2025Server",
15561556
]
15571557
assert returned_grains["osrelease"] in valid_releases
15581558

@@ -3110,19 +3110,17 @@ def test_osdata_virtual_key_win():
31103110
@pytest.mark.parametrize(
31113111
"osrelease, expected",
31123112
[
3113-
("2025Server", (2025, )),
3113+
("2025Server", (2025,)),
31143114
("2012ServerR2", (2012, 2)),
3115-
("11", (11, )),
3116-
("8.1", (8, 1))
3117-
]
3115+
("11", (11,)),
3116+
("8.1", (8, 1)),
3117+
],
31183118
)
31193119
def test_windows_osdata_osrelease_info(osrelease, expected):
31203120
platform_data = core._windows_platform_data()
31213121
platform_data["osrelease"] = osrelease
31223122
mock_platform_data = MagicMock(return_value=platform_data)
3123-
with patch.object(
3124-
core, "_windows_platform_data", mock_platform_data
3125-
):
3123+
with patch.object(core, "_windows_platform_data", mock_platform_data):
31263124
os_data = core.os_data()
31273125
assert os_data["osrelease_info"] == expected
31283126

0 commit comments

Comments
 (0)