예제 #1
0
def handle_getNdbConfig(req, body):
    (user, pwd) = get_cred(body)

    with produce_ABClusterHost(body['hostName'], user, pwd) as ch:
        ndb_config = ch.path_module.join(body['installpath'], 'ndb_config')
        return make_rep(
            req, {
                'ndb_config':
                json.dumps(
                    util.xml_to_python(
                        ch.exec_cmdv([ndb_config, '--configinfo', '--xml'])))
            })
def handle_getNdbConfig(req, body):
    (user, pwd) = get_cred(body)

    with produce_ABClusterHost(body['hostName'], user, pwd) as ch:
        ndb_config = ch.path_module.join(body['installpath'], 'ndb_config')
        return make_rep(req, { 'ndb_config': json.dumps(util.xml_to_python(ch.exec_cmdv([ndb_config, '--configinfo', '--xml']))) })
예제 #3
0
 def test_ndb_config(self):
     print 'ndb config as json: ', json.dumps(
         util.xml_to_python(self.cluster.ndb_config_xml()))
예제 #4
0
 def test_ndb_config(self):
     print 'ndb config as json: ', json.dumps(util.xml_to_python(self.cluster.ndb_config_xml()))