Skip to content

Commit

Permalink
Fix some messages issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xumia committed Jul 10, 2020
1 parent 17118af commit 7da32e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/fast-reboot
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ function reboot_pre_check()
# Verify the next image by sonic_installer
local message=$(sonic_installer verify_next_image 2>&1)
if [ $? -ne 0 ]; then
debug "Failed to verify next image by running command: sonic_installer verify_next_image, result message: ${message}"
debug "Failed to verify next image: ${message}"
exit ${EXIT_SONIC_INSTALLER_VERIFY_REBOOT}
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/reboot
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function reboot_pre_check()
# Verify the next image by sonic_installer
local message=$(sonic_installer verify_next_image 2>&1)
if [ $? -ne 0 ]; then
VERBOSE=yes debug "Failed to verify the next image by running command: sonic_installer verify_next_image, result message: ${message}"
VERBOSE=yes debug "Failed to verify next image: ${message}"
exit ${EXIT_SONIC_INSTALLER_VERIFY_REBOOT}
fi
}
Expand Down
2 changes: 1 addition & 1 deletion sonic_installer/bootloader/bootloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def verify_next_image(self):
image = self.get_next_image()
image_path = self.get_image_path(image)
if not path.exists(image_path):
sys.stderr.write('Next image {0} doesn\'t exist ...\n'.format(image))
sys.stdout.write('Next image {0} doesn\'t exist ...\n'.format(image))
return False
return True

Expand Down

0 comments on commit 7da32e3

Please sign in to comment.