~allenap/checkbox/maas-jobs

« back to all changes in this revision

Viewing changes to plainbox/plainbox/impl/commands/run.py

  • Committer: Tarmac
  • Author(s): Zygmunt Krynicki
  • Date: 2013-11-04 10:16:12 UTC
  • mfrom: (2485.1.3 launchpad/fixes)
  • Revision ID: tarmac-20131104101612-m4dja6dujuq05jo3
"automatic merge by tarmac [r=sylvain-pineau][bug=1236377,1236505,1243610][author=zkrynicki]"

Show diffs side-by-side

added added

removed removed

Lines of Context:
226
226
        return 0
227
227
 
228
228
    def _auth_warmup_needed(self, session):
229
 
        # Don't warm up checkbox-trusted-launcher if none of the providers use
230
 
        # it. We assume that the mere presence of a provider makes it possible
231
 
        # for a root job to be preset but it could be improved to acutally know
232
 
        # when this step is absolutely not required (no local jobs, no jobs
 
229
        # Don't warm up plainbox-trusted-launcher-1 if none of the providers
 
230
        # use it. We assume that the mere presence of a provider makes it
 
231
        # possible for a root job to be preset but it could be improved to
 
232
        # acutally know when this step is absolutely not required (no local
 
233
        # jobs, no jobs
233
234
        # need root)
234
235
        if all(not provider.secure for provider in self.provider_list):
235
236
            return False