mfg_util: Fix unnecessary csv files creation for values with REPEAT tags

(cherry picked from commit 8b96668c9123fbbf8c78b347479215f471b102ed)
This commit is contained in:
Shivani Tipnis 2019-05-22 11:17:56 +05:30
parent ce279988c3
commit cd9249970f

View File

@ -264,10 +264,10 @@ def set_repeat_value(total_keys_repeat, keys, csv_file, target_filename):
if key_val_new[0][0] == key_repeated[0]:
val = key_val_pair[0][1]
row[index] = val
csv_file_writer.writerow(row)
del key_repeated[0]
del key_val_new[0]
del key_val_pair[0]
csv_file_writer.writerow(row)
return target_filename