diff --git a/dbm-ui/backend/flow/utils/mongodb/migrate_meta.py b/dbm-ui/backend/flow/utils/mongodb/migrate_meta.py index bdcc08d42..8afcea45f 100644 --- a/dbm-ui/backend/flow/utils/mongodb/migrate_meta.py +++ b/dbm-ui/backend/flow/utils/mongodb/migrate_meta.py @@ -118,7 +118,7 @@ def save_app_password(self): ) if result["password"] is None: logger.error("user:{} get password fail from db, error:{}".format(user, result["info"])) - if not result["password"] == "": + if result["password"] == "": info = MongoDBPassword().save_password_to_db( instances=[ {