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

pull/45806/head
Sam Doran 6 years ago committed by GitHub
parent b6fcbfe813
commit afd8b97fb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save