def update_access_info(self, context, access_info): """Validate and update access information.""" helper.encrypt_password(context, access_info) driver = self.driver_manager.get_driver(context, cache_on_load=False, **access_info) storage_new = driver.get_storage(context) # Need to validate storage response from driver storage_id = access_info['storage_id'] helper.check_storage_consistency(context, storage_id, storage_new) access_info = db.access_info_update(context, storage_id, access_info) db.storage_update(context, storage_id, storage_new) LOG.info("Access information updated successfully.") return access_info
def update_access_info(context, storage_id, access_info): encrypt_password(context, access_info) return db.access_info_update(context, storage_id, access_info)