]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Do not default to 'admin' as Admin Resource 27626/head
authorWido den Hollander <wido@42on.com>
Tue, 16 Apr 2019 22:18:38 +0000 (00:18 +0200)
committerWido den Hollander <wido@42on.com>
Tue, 16 Apr 2019 22:23:31 +0000 (00:23 +0200)
The current if-statement would always default to 'admin' as the admin
resource regardless of what 'mgr/dashboard/RGW_API_ADMIN_RESOURCE' is set
to.

In some cases users change this setting in the RGW for various reasons.

The dashboard currently does not support this and will cause the RGW management
not to work.

Fixes: http://tracker.ceph.com/issues/39338
Signed-off-by: Wido den Hollander <wido@42on.com>
src/pybind/mgr/dashboard/services/rgw_client.py

index 72b6b1d913e8fa6056390fbe42d0c03cbe54cbc4..d148235c538fd1ecb86ad7ff2a162bde2e6e0699 100644 (file)
@@ -273,7 +273,7 @@ class RgwClient(RestClient):
                  secret_key,
                  host=None,
                  port=None,
-                 admin_path='admin',
+                 admin_path=None,
                  ssl=False):
 
         if not host and not RgwClient._host: