kernelupload: Revive upload support check

Needed so that test_urls doesn't fail attempting to upload
This commit is contained in:
Cole Robinson 2019-02-28 12:23:00 -05:00
parent 7672b1b010
commit ad53d59038
1 changed files with 5 additions and 0 deletions

View File

@ -121,6 +121,11 @@ def upload_kernel_initrd(conn, scratchdir, system_scratchdir,
" nothing to upload")
return kernel, initrd, tmpvols
if not conn.support_remote_url_install():
# Needed for the test_urls suite
logging.debug("Media upload not supported")
return kernel, initrd, tmpvols
# Build pool
logging.debug("Uploading kernel/initrd media")
pool = _build_pool(conn, meter, system_scratchdir)