webui tests: remove unnecessary code in add_record

Pkeys are not used anywhere in the method thus can be removed.

Related: https://pagure.io/freeipa/issue/9036

Signed-off-by: Petr Vobornik <pvoborni@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
Petr Vobornik 2021-10-04 22:53:20 +02:00 committed by Florence Blanc-Renaud
parent 36b975804f
commit da4a7d29e9

View File

@ -1460,10 +1460,6 @@ class UI_driver:
last_element = data[len(data) - 1]
pkeys = []
for record in data:
pkeys.append(record['pkey'])
if navigate:
self.navigate_to_entity(entity, facet)