when a variant is empty do not add it to the repolist for livemedia

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
This commit is contained in:
Dennis Gilmore 2016-02-18 11:02:46 -06:00 committed by Lubomír Sedlář
parent 37ac0d7bfe
commit 466a0eb24f

View File

@ -40,6 +40,7 @@ class LiveMediaPhase(PhaseBase):
repo = shortcuts.force_list(image_conf.get('repo', [])) repo = shortcuts.force_list(image_conf.get('repo', []))
extras = shortcuts.force_list(image_conf.pop('repo_from', [])) extras = shortcuts.force_list(image_conf.pop('repo_from', []))
if not variant.is_empty:
extras.append(variant.uid) extras.append(variant.uid)
for extra in extras: for extra in extras: