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']))) })
def test_ndb_config(self): print 'ndb config as json: ', json.dumps( util.xml_to_python(self.cluster.ndb_config_xml()))
def test_ndb_config(self): print 'ndb config as json: ', json.dumps(util.xml_to_python(self.cluster.ndb_config_xml()))