diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-02-13 12:30:40 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-02-13 12:30:40 +0000 |
commit | d9ad77ea43f99f3f6d58f66cb1bfe261d966c730 (patch) | |
tree | a7292917733da4b550bc9010077a4b839a06f56d /morphlib/plugins/distbuild_plugin.py | |
parent | 92e8cdbfa2687a0fcfe58f1ffc338171a5f8dc94 (diff) | |
parent | 503517b75c8fc99306e4a852e876fdbca2b79d39 (diff) | |
download | morph-d9ad77ea43f99f3f6d58f66cb1bfe261d966c730.tar.gz |
Merge branch 'sam/distbuild-errors'
Reviewed-By: Pedro Alvarez <pedro.alvarez@codethink.co.uk>
Reviewed-By: Francisco Redondo Marchena <francisco.marchena@codethink.co.uk>
Diffstat (limited to 'morphlib/plugins/distbuild_plugin.py')
-rw-r--r-- | morphlib/plugins/distbuild_plugin.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/morphlib/plugins/distbuild_plugin.py b/morphlib/plugins/distbuild_plugin.py index 66d86dcf..a7d69472 100644 --- a/morphlib/plugins/distbuild_plugin.py +++ b/morphlib/plugins/distbuild_plugin.py @@ -1,6 +1,6 @@ # distbuild_plugin.py -- Morph distributed build plugin # -# Copyright (C) 2014 Codethink Limited +# Copyright (C) 2014-2015 Codethink Limited # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -238,6 +238,11 @@ class ControllerDaemon(cliapp.Plugin): distbuild.add_crash_conditions(self.app.settings['crash-condition']) + if not self.app.settings['worker']: + raise cliapp.AppException( + 'Distbuild controller has no workers configured. Refusing to ' + 'start.') + artifact_cache_server = ( self.app.settings['artifact-cache-server'] or self.app.settings['cache-server']) |