示例#1
0
 def master(self):
     info = config.get_single_node_role_info(self.cluster, constants.MASTER)
     info.alias = None
     return info
示例#2
0
 def master(self):
     info = config.get_single_node_role_info(self.cluster, constants.MASTER)
     info.alias = None
     return info
示例#3
0
 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)
示例#4
0
 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)