From: Stephen Soltesz Date: Wed, 10 Nov 2010 23:19:28 +0000 (-0500) Subject: never fail when uploading logs X-Git-Tag: bootmanager-5.0-13~2^2~1 X-Git-Url: http://git.onelab.eu/?p=bootmanager.git;a=commitdiff_plain;h=25a324321680b91f2233464dfa0a6fac8c900f2b never fail when uploading logs --- diff --git a/source/BootManager.py b/source/BootManager.py index 4ea06c8..9ed03ed 100755 --- a/source/BootManager.py +++ b/source/BootManager.py @@ -148,7 +148,8 @@ class log: if extra_file is not None: # NOTE: for code-reuse, evoke the bash function 'upload_logs'; # by adding --login, bash reads .bash_profile before execution. - utils.sysexec( """bash --login -c "upload_logs %s" """ % extra_file, self) + # Also, never fail, since this is an optional feature. + utils.sysexec( """bash --login -c "upload_logs %s || /bin/true" """ % extra_file, self) ##############################