From afd8b97fb1a6196e04a302ef74300d3cad6518f3 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Tue, 18 Sep 2018 10:10:47 -0400 Subject: [PATCH] Make sure strings are bytes for Py2/3 compatibility (#45746) --- lib/ansible/plugins/action/reboot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/action/reboot.py b/lib/ansible/plugins/action/reboot.py index 1db2d16e583..4dd90149a50 100644 --- a/lib/ansible/plugins/action/reboot.py +++ b/lib/ansible/plugins/action/reboot.py @@ -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