From: Ricardo Dias Date: Thu, 1 Aug 2019 07:55:42 +0000 (+0100) Subject: mgr/dashboard: removing dead code in upgrade user database X-Git-Tag: v15.1.0~1977^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=566421798e2528e0e9fc93b8d8b52ff1d1f32947;p=ceph-ci.git mgr/dashboard: removing dead code in upgrade user database Signed-off-by: Ricardo Dias --- diff --git a/src/pybind/mgr/dashboard/services/access_control.py b/src/pybind/mgr/dashboard/services/access_control.py index 8125f278ed7..a4032f8dc47 100644 --- a/src/pybind/mgr/dashboard/services/access_control.py +++ b/src/pybind/mgr/dashboard/services/access_control.py @@ -380,14 +380,7 @@ class AccessControlDB(object): # If version 1 does not exist, check if migration of VERSION "0" needs to be done check_migrate_v0_to_current() - if self.VERSION == 1: # current version - check_migrate_v0_to_current() - - elif self.VERSION == 2: # current version - check_migrate_v1_to_current() - - else: - raise NotImplementedError() + check_migrate_v1_to_current() @classmethod def load(cls):