From 30efde6eb36dde67f86bec22bd082bcb9e5163d3 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Fri, 30 Apr 2021 13:30:10 +0200 Subject: [PATCH] bundles/apt: remove unneeded if --- bundles/apt/items.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bundles/apt/items.py b/bundles/apt/items.py index 97e8039..2a07c7b 100644 --- a/bundles/apt/items.py +++ b/bundles/apt/items.py @@ -163,6 +163,5 @@ for name, data in node.metadata.get('apt/repos', {}).items(): }, } -if node.metadata.get('apt/packages', {}): - for package, options in node.metadata['apt']['packages'].items(): - pkg_apt[package] = options +for package, options in node.metadata.get('apt/packages', {}).items(): + pkg_apt[package] = options