tests/Cluster.py
def parseClusterKeys(totalNodes):
        """Parse cluster config file. Updates producer keys data members."""

        node="node_bios"
        configFile="etc/myeosio/%s/config.ini" % (node)
        if Utils.Debug: Utils.Print("Parsing config file %s" % configFile)
        producerKeys=Cluster.parseProducerKeys(configFile, node)
        if producerKeys is None:
            Utils.Print("ERROR: Failed to parse myeosio private keys from cluster config files.")
            return None

        for i in range(0, totalNodes):
            node="node_%02d" % (i)
            configFile="etc/myeosio/%s/config.ini" % (node)
            if Utils.Debug: Utils.Print("Parsing config file %s" % configFile)

            keys=Cluster.parseProducerKeys(configFile, node)
            if keys is not None:
                producerKeys.update(keys)

        return producerKeys
Parse cluster config file. Updates producer keys data members.
Parse cluster config file. Updates producer keys data members.
Parse cluster config file . Updates producer keys data members .
def parseClusterKeys(totalNodes):
        node="node_bios"
        configFile="etc/myeosio/%s/config.ini" % (node)
        if Utils.Debug: Utils.Print("Parsing config file %s" % configFile)
        producerKeys=Cluster.parseProducerKeys(configFile, node)
        if producerKeys is None:
            Utils.Print("ERROR: Failed to parse myeosio private keys from cluster config files.")
            return None
        for i in range(0, totalNodes):
            node="node_%02d" % (i)
            configFile="etc/myeosio/%s/config.ini" % (node)
            if Utils.Debug: Utils.Print("Parsing config file %s" % configFile)
            keys=Cluster.parseProducerKeys(configFile, node)
            if keys is not None:
                producerKeys.update(keys)
        return producerKeys
def parseClusterKeys ( totalNodes ) : node = "node_bios" configFile = "etc/myeosio/%s/config.ini" % ( node ) if Utils . Debug : Utils . Print ( "Parsing config file %s" % configFile ) producerKeys = Cluster . parseProducerKeys ( configFile , node ) if producerKeys is None : Utils . Print ( "ERROR: Failed to parse myeosio private keys from cluster config files." ) return None for i in range ( 0 , totalNodes ) : node = "node_%02d" % ( i ) configFile = "etc/myeosio/%s/config.ini" % ( node ) if Utils . Debug : Utils . Print ( "Parsing config file %s" % configFile ) keys = Cluster . parseProducerKeys ( configFile , node ) if keys is not None : producerKeys . update ( keys ) return producerKeys
Parse cluster config file.
Parse cluster config file .
"""Parse cluster config file. Updates producer keys data members."""
totalNodes