]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/dashboard: supports url_prefix in rgw page 19512/head
authorChang Liu <liuchang0812@gmail.com>
Fri, 22 Dec 2017 09:56:19 +0000 (17:56 +0800)
committerChang Liu <liuchang0812@gmail.com>
Fri, 22 Dec 2017 09:56:19 +0000 (17:56 +0800)
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
src/pybind/mgr/dashboard/rgw.py

index 8af485e29230b81526c049c01fc5e6f59ba7e479..383233440cc9b1fe881b0a68a76c4e3f65f983a1 100644 (file)
@@ -38,7 +38,7 @@ class RGWDaemons(RemoteViewCache):
                         'server': server,
                         'metadata': metadata,
                         'status': status,
-                        'url': "/rgw/{0}".format(service['id'])
+                        'url': "{0}/rgw/{1}".format(self._module.url_prefix, service['id'])
                     }
 
                     daemons.append(daemon)