]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: removing dead code in upgrade user database
authorRicardo Dias <rdias@suse.com>
Thu, 1 Aug 2019 07:55:42 +0000 (08:55 +0100)
committerRicardo Dias <rdias@suse.com>
Thu, 1 Aug 2019 08:35:05 +0000 (09:35 +0100)
Signed-off-by: Ricardo Dias <rdias@suse.com>
src/pybind/mgr/dashboard/services/access_control.py

index 8125f278ed79155656b52868c6f7d4632320c7a6..a4032f8dc47d16ec2c61d221198c8c0831d4ea9c 100644 (file)
@@ -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):