def _generate_group_vars_attributes(self, global_vars_dict):
        logging.info("global vars dict is %s", global_vars_dict)
        group_vars_tmpl_path = os.path.join(
            os.path.join(self.tmpl_dir, self.GROUPVARS_TMPL_DIR),
            self.tmpl_name
        )
        if not os.path.exists(group_vars_tmpl_path):
            logging.error("Vars template '%s' does not exist",
                          self.tmpl_name)
            raise Exception("Template '%s' does not exist!" % self.tmpl_name)

        return self.get_config_from_template(
            group_vars_tmpl_path, global_vars_dict
        )
dataset/ETHPy150Open openstack/compass-core/compass/deployment/installers/pk_installers/ansible_installer/ansible_installer.py/AnsibleInstaller._generate_group_vars_attributes/original