summaryrefslogtreecommitdiffstats
path: root/src/com.gluster.storage.management.client
diff options
context:
space:
mode:
authorShireesh Anjal <shireesh@gluster.com>2011-08-06 16:36:44 +0530
committerShireesh Anjal <shireesh@gluster.com>2011-08-06 16:36:44 +0530
commit346bb940f00b61c54e0184019a905bffeccf89b0 (patch)
tree165fea2ab957cc929893ac58ea21bd86df3075e1 /src/com.gluster.storage.management.client
parent7883f650a9e4bd9f691493f002e533739dcd00c7 (diff)
Modified to make sure that the server devices are updated with server name even in case of manual server addition.
Diffstat (limited to 'src/com.gluster.storage.management.client')
-rw-r--r--src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/GlusterServersClient.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/GlusterServersClient.java b/src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/GlusterServersClient.java
index c61c993c..2dd660bf 100644
--- a/src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/GlusterServersClient.java
+++ b/src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/GlusterServersClient.java
@@ -120,7 +120,9 @@ public class GlusterServersClient extends AbstractClient {
return fetchSubResource(RESTConstants.RESOURCE_STATISTICS, queryParams, ServerStats.class);
}
- public GlusterServer getServer(URI uri) {
- return fetchResource(uri, GlusterServer.class);
+ public GlusterServer getGlusterServer(URI uri) {
+ GlusterServer server = fetchResource(uri, GlusterServer.class);
+ GlusterCoreUtil.updateServerNameOnDevices(server);
+ return server;
}
}