Skip to content
Snippets Groups Projects
Commit ba8d63af authored by Ben Couturier's avatar Ben Couturier
Browse files

Merge branch 'fix-lb-run' into 'master'

Use os_id function from the right LbPlatformUtils module and fix formatting

See merge request !279
parents 5d0ac3f7 2970c108
Branches
No related tags found
1 merge request!279Use os_id function from the right LbPlatformUtils module and fix formatting
......@@ -696,12 +696,13 @@ class LbRun(xenv.Script):
if self.opts.platform.lower() == 'best':
self.opts.platform = self._findBestPlatform()
elif not supported(self.opts.platform):
import LbPlatformUtils.inspect
msg = ('current host does not support platform {0} '
'(dirac_platform: {1}').format(self.opts.platform,
HOST_PLATFORM)
os_id = LbPlatformUtils.os_id()
os_id = LbPlatformUtils.inspect.os_id()
if not HOST_PLATFORM.startswith(os_id):
msg += 'os_id: {2}'.format(os_id)
msg += 'os_id: {0}'.format(os_id)
msg += ')'
logger = (self.log.warning
if self.opts.force_platform else self.log.error)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment