image_utils: Remove unused _validate_file_format method

This method is no longer used.

Change-Id: I391de2edca9a40407b0706a0d5a15a17be355ca9
This commit is contained in:
Eric Harney 2021-04-27 10:54:03 -04:00
parent ea7ae8e655
commit 290033ff3c
1 changed files with 0 additions and 9 deletions

View File

@ -730,15 +730,6 @@ def fetch_to_volume_format(context, image_service,
run_as_root=run_as_root)
def _validate_file_format(image_data, expected_format):
if image_data.file_format == expected_format:
return True
elif image_data.file_format == 'vpc' and expected_format == 'vhd':
# qemu-img still uses the legacy 'vpc' name for the vhd format.
return True
return False
def upload_volume(context, image_service, image_meta, volume_path,
volume_format='raw', run_as_root=True, compress=True,
store_id=None, base_image_ref=None):