agent name should also contain port number

otherwise multiple agents per machines will have the same id

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
Yehuda Sadeh 2013-08-04 20:57:25 -07:00 committed by Joe Buck
parent 4adc1da58a
commit 3fb53189d0

View File

@ -44,7 +44,7 @@ def run_radosgw_agent(ctx, client, config):
dest_access, dest_secret = rgw_utils.get_zone_system_keys(ctx, dest_client,
dest_zone)
port = config.get('port', 8000)
daemon_name = '{host}.syncdaemon'.format(host=remote.name)
daemon_name = '{host}.{port}.syncdaemon'.format(host=remote.name, port=port)
return remote.run(
args=[