def master(self): info = config.get_single_node_role_info(self.cluster, constants.MASTER) info.alias = None return info
def _get(self, role): try: return config.get_single_node_role_info(self.setup, role) except (ConfigParser.NoOptionError, ConfigParser.NoSectionError): return config.get_node_info(constants.DUMMY_NODE)