def run_addons(self): machines = service_unit_addresses(self.status).keys() if not machines: return if self.addons_file is not None and self.addons is not None: return do_addons(self.addons_file, self.addons, machines, self.unit_dump_location, self.uniq)
def run_addons(self): juju_status = yaml.load(open('juju_status.yaml', 'r')) machines = service_unit_addresses(juju_status).keys() if not machines: return if self.addons_file is not None and self.addons is not None: return do_addons(self.addons_file, self.addons, machines, self.uniq)