pcmanus/ccm — pull request #30 by eevans (2012-08-15 22:13:52+00:00)
Title: cast int to str to avoid TypeError

Doing `ccm updateconf` I get:

Traceback (most recent call last):
File "./ccm", line 68, in
cmd.run()
File "/home/eevans/dev/src/git/ccm/ccmlib/cmds/cluster_cmds.py", line 451, in run
self.cluster.set_configuration_options(values=self.setting, batch_commitlog=self.options.cl_batch)
File "/home/eevans/dev/src/git/ccm/ccmlib/cluster.py", line 302, in set_configuration_options
node.import_config_files()
File "/home/eevans/dev/src/git/ccm/ccmlib/node.py", line 563, in import_config_files
self.__update_envfile()
File "/home/eevans/dev/src/git/ccm/ccmlib/node.py", line 657, in __update_envfile
common.replace_in_file(conf_file, remote_debug_port_pattern, 'JVM_OPTS="$JVM_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=' + self.remote_debug_port + '"')
TypeError: cannot concatenate 'str' and 'int' objects

The (trivial )fix is to use the string representation of `self.remote_debug_port`.