def _get_property(device_path: Union[Path, str], property_name: str) -> str:
"""Gets the given property for a device."""
with open(str(Path(device_path, property_name))) as file:
return file.readline().strip()
online/present will return as a string, and thus bool() will count them as True regardless.
This issue is being created for transparency sake, and to inform that it's known and will be fixed in the new branch.
Due to the following code, located at https://github.com/Lvl4Sword/Killer/blob/main/killer/posix/power.py#L68
online
/present
will return as a string, and thus bool() will count them as True regardless. This issue is being created for transparency sake, and to inform that it's known and will be fixed in the new branch.