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:
parent
b6fcbfe813
commit
afd8b97fb1
1 changed files with 2 additions and 2 deletions
|
@ -94,8 +94,8 @@ class ActionModule(ActionBase):
|
||||||
return reboot_command
|
return reboot_command
|
||||||
|
|
||||||
def get_system_boot_time(self):
|
def get_system_boot_time(self):
|
||||||
stdout = ''
|
stdout = b''
|
||||||
stderr = ''
|
stderr = b''
|
||||||
command_result = self._low_level_execute_command(self.DEFAULT_BOOT_TIME_COMMAND, sudoable=self.DEFAULT_SUDOABLE)
|
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
|
# For single board computers, e.g., Raspberry Pi, that lack a real time clock and are using fake-hwclock
|
||||||
|
|
Loading…
Reference in a new issue