From 566421798e2528e0e9fc93b8d8b52ff1d1f32947 Mon Sep 17 00:00:00 2001 From: Ricardo Dias Date: Thu, 1 Aug 2019 08:55:42 +0100 Subject: [PATCH] mgr/dashboard: removing dead code in upgrade user database Signed-off-by: Ricardo Dias --- src/pybind/mgr/dashboard/services/access_control.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/pybind/mgr/dashboard/services/access_control.py b/src/pybind/mgr/dashboard/services/access_control.py index 8125f278ed79..a4032f8dc47d 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): -- 2.47.3