def _generate_hosts_attributes(self, global_vars_dict):
        hosts_tmpl_path = os.path.join(
            os.path.join(self.tmpl_dir, 'hosts'), self.tmpl_name
        )
        if not os.path.exists(hosts_tmpl_path):
            logging.error("Hosts template '%s' does not exist", self.tmpl_name)
            raise Exception(self.tmpl_name % "Template '%s' does not exist!")

        return self.get_config_from_template(hosts_tmpl_path, global_vars_dict)
dataset/ETHPy150Open openstack/compass-core/compass/deployment/installers/pk_installers/ansible_installer/ansible_installer.py/AnsibleInstaller._generate_hosts_attributes/swapped operands of `%`