def validate(self): if 'repository' not in self.parameters: self.errors = "Bzr repository not specified in job definition" if 'path' not in self.parameters: self.errors = "Path to YAML file not specified in the job definition" if not self.valid: return self.vcs = BzrHelper(self.parameters['repository']) super(BzrRepoAction, self).validate()