fedimg: Add the patch for the PR#99

Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
This commit is contained in:
Sayan Chowdhury 2018-04-18 01:34:22 +05:30 committed by Sayan Chowdhury
parent ff88d963b5
commit 375f565fcc

View file

@ -137,7 +137,17 @@ def get_source_from_image(image_url):
if retcode != 0:
return ''
return file_path
output, error, retcode = external_run_command([
'xzcat',
file_path,
'>',
file_path.rstrip('.xz')
])
if retcode != 0:
return ''
return file_path.rstrip('.xz')
def get_volume_type_from_image(image, region):