]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #18730 from shinobu-x/wip-luminous-22030
authorYuri Weinstein <yuri.weinstein@gmail.com>
Wed, 24 Jan 2018 21:18:41 +0000 (13:18 -0800)
committerGitHub <noreply@github.com>
Wed, 24 Jan 2018 21:18:41 +0000 (13:18 -0800)
luminous: List of filesystems does not get refreshed after a filesystem deletion

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
1  2 
src/mds/FSMap.h
src/pybind/mgr/dashboard/filesystem.html
src/pybind/mgr/dashboard/module.py

diff --cc src/mds/FSMap.h
Simple merge
index 60a97a007d7628967174261be927d8637a77cc2e,f58e9e40aad273b6a9aec1d13577b3f984f6fa20..b93e1f62a9e4f225d87cb9968e79ead83689291a
@@@ -8,9 -8,13 +8,13 @@@
              var content_data = {{ content_data }};
  
              var refresh = function() {
 -                $.get("/filesystem_data/" + content_data.fs_status.filesystem.id  + "/", function(data) {
 +                $.get("{{ url_prefix }}/filesystem_data/" + content_data.fs_status.filesystem.id  + "/", function(data) {
                      _.extend(content_data.fs_status, data);
                      setTimeout(refresh, 5000);
+                 }).fail(function() {
+                     // Perhaps the filesystem we're viewing no longer exists.
+                     // Go back to home.
+                     window.location.href = "{{ url_prefix }}/";
                  });
              };
  
Simple merge