wso2am/1.9.1/plugins/wso2am-startup-handler.py
def update_hosts_file(self, ip_address, host_name):
        """
        Updates /etc/hosts file with clustering hostnames
        :return: void
        """
        config_command = "echo %s  %s >> /etc/hosts" % (ip_address, host_name)
        env_var = os.environ.copy()
        p = subprocess.Popen(config_command, env=env_var, shell=True)
        output, errors = p.communicate()
        WSO2AMStartupHandler.log.info(
            "Successfully updated [ip_address] %s & [hostname] %s in etc/hosts" % (ip_address, host_name))

        Updates /etc/hosts file with clustering hostnames
        :return: void
        
Updates /etc/hosts file with clustering hostnames
Updates / etc / hosts file with clustering hostnames
def update_hosts_file(self, ip_address, host_name):
        config_command = "echo %s  %s >> /etc/hosts" % (ip_address, host_name)
        env_var = os.environ.copy()
        p = subprocess.Popen(config_command, env=env_var, shell=True)
        output, errors = p.communicate()
        WSO2AMStartupHandler.log.info(
            "Successfully updated [ip_address] %s & [hostname] %s in etc/hosts" % (ip_address, host_name))
def update_hosts_file ( self , ip_address , host_name ) : config_command = "echo %s  %s >> /etc/hosts" % ( ip_address , host_name ) env_var = os . environ . copy ( ) p = subprocess . Popen ( config_command , env = env_var , shell = True ) output , errors = p . communicate ( ) WSO2AMStartupHandler . log . info ( "Successfully updated [ip_address] %s & [hostname] %s in etc/hosts" % ( ip_address , host_name ) )
Updates /etc/hosts file with clustering hostnames
Updates / etc / hosts file with clustering hostnames
"""
        Updates /etc/hosts file with clustering hostnames
        :return: void
        """
None
self
ip_address
host_name