mirror of https://git.48k.eu/ogcp
views: remove rendundant partition checks in image/restore
Partition validation is already performed before the removed checks image restore, additional checks are redundant. Remove redundant partition validation.master
parent
d9597e4e01
commit
1cf6fbc49e
|
@ -1112,10 +1112,6 @@ def action_image_restore():
|
|||
|
||||
reference_patitioning = part_collection.get_partition_setup(0)
|
||||
|
||||
if not reference_patitioning:
|
||||
flash(_(f'No valid partition found'), category='error')
|
||||
return redirect(url_for('commands'))
|
||||
|
||||
for disk_id, part_id, part_type, fs_type, part_size in reference_patitioning:
|
||||
form.partition.choices.append(
|
||||
(f"{disk_id} {part_id} {part_size} {has_cache}",
|
||||
|
@ -1124,10 +1120,6 @@ def action_image_restore():
|
|||
f"{fs_type}")
|
||||
)
|
||||
|
||||
if not form.partition.choices:
|
||||
flash(_(f'No valid partition available'), category='error')
|
||||
return redirect(url_for('commands'))
|
||||
|
||||
return render_template('actions/image_restore.html', form=form,
|
||||
selected_clients=selected_clients,
|
||||
scopes=scopes)
|
||||
|
|
Loading…
Reference in New Issue