summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceGrid/Client.cpp')
-rw-r--r--cpp/src/IceGrid/Client.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/cpp/src/IceGrid/Client.cpp b/cpp/src/IceGrid/Client.cpp
index 29b98aec2d2..c9d9d6b122b 100644
--- a/cpp/src/IceGrid/Client.cpp
+++ b/cpp/src/IceGrid/Client.cpp
@@ -313,16 +313,19 @@ Client::run(int argc, char* argv[])
}
else
{
- string registryStr = instanceName + "/Registry";
+ Identity registryId;
+ registryId.category = instanceName;
+ registryId.name = "Registry";
if(!replica.empty() && replica != "Master")
{
- registryStr += "-" + replica;
+ registryId.name += "-" + replica;
}
RegistryPrx registry;
try
{
- registry = RegistryPrx::checkedCast(communicator()->stringToProxy(registryStr));
+ registry = RegistryPrx::checkedCast(
+ communicator()->stringToProxy("\"" + communicator()->identityToString(registryId) + "\""));
if(!registry)
{
cerr << argv[0] << ": could not contact registry" << endl;