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
1 changed files with 2 additions and 1 deletions

View File

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