def __init__(self, name, config, target_directory, dry_run=False): self.config = config self.config.validate_config(self.CONFIGSPEC) LOG.debug("Validated config: %r", self.config) self.name = name self.target_directory = target_directory self.dry_run = dry_run self.client = connect_simple(self.config["mysql:client"]) self.mysqldump_plugin = MySQLDumpPlugin(name, config, target_directory, dry_run)