src/toil_lib/tools/spark_tools.py
def docker_parameters(self, docker_parameters=None):
        """
        Augment a list of "docker run" arguments with those needed to map the  notional Spark master address to the
        real one, if they are different.
        """
        if self != self.actual:
            add_host_option = '--add-host=spark-master:' + self.actual
            if docker_parameters is None:
                docker_parameters = [add_host_option]
            else:
                docker_parameters.append(add_host_option)
        return docker_parameters
def docker_parameters(self, docker_parameters=None):
        if self != self.actual:
            add_host_option = '--add-host=spark-master:' + self.actual
            if docker_parameters is None:
                docker_parameters = [add_host_option]
            else:
                docker_parameters.append(add_host_option)
        return docker_parameters
def docker_parameters ( self , docker_parameters = None ) : if self != self . actual : add_host_option = '--add-host=spark-master:' + self . actual if docker_parameters is None : docker_parameters = [ add_host_option ] else : docker_parameters . append ( add_host_option ) return docker_parameters
Augment a list of "docker run" arguments with those needed to map the  notional Spark master address to the
        real one, if they are different.
Augment a list of docker run arguments with those needed to map the notional Spark master address to the real one if they are different .