1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Make sure strings are bytes for Py2/3 compatibility (#45746)

This commit is contained in:
Sam Doran 2018-09-18 10:10:47 -04:00 committed by GitHub
parent b6fcbfe813
commit afd8b97fb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,8 +94,8 @@ class ActionModule(ActionBase):
return reboot_command
def get_system_boot_time(self):
stdout = ''
stderr = ''
stdout = b''
stderr = b''
command_result = self._low_level_execute_command(self.DEFAULT_BOOT_TIME_COMMAND, sudoable=self.DEFAULT_SUDOABLE)
# For single board computers, e.g., Raspberry Pi, that lack a real time clock and are using fake-hwclock