diff --git a/scripts/db_migrator.py b/scripts/db_migrator.py index e88537fb3b..7576651804 100755 --- a/scripts/db_migrator.py +++ b/scripts/db_migrator.py @@ -831,8 +831,8 @@ def version_3_0_5(self): # reading FAST_REBOOT table can't be done with stateDB.get as it uses hget behind the scenes and the table structure is # not using hash and won't work. # FAST_REBOOT table exists only if fast-reboot was triggered. - keys = self.stateDB.keys(self.stateDB.STATE_DB, "FAST_REBOOT") - if keys is not None: + keys = self.stateDB.keys(self.stateDB.STATE_DB, "FAST_REBOOT|system") + if keys: enable_state = 'true' else: enable_state = 'false'