From 675f8beea92fe4f0473cdeca7b799c7624d5e20f Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 27 Sep 2020 17:18:05 +0200 Subject: [PATCH] bundles/raspberrypi: improvements --- bundles/raspberrypi/files/config.txt | 4 ++-- bundles/raspberrypi/items.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/raspberrypi/files/config.txt b/bundles/raspberrypi/files/config.txt index 80d4b1f..702a752 100644 --- a/bundles/raspberrypi/files/config.txt +++ b/bundles/raspberrypi/files/config.txt @@ -9,6 +9,6 @@ max_framebuffers=2 arm_64bit=1 % endif -% for key, value in node.metadata['raspberrypi']['config.txt'].items(): -${key}=${value} +% for item in sorted(node.metadata['raspberrypi']['config.txt']): +${item} % endfor diff --git a/bundles/raspberrypi/items.py b/bundles/raspberrypi/items.py index dc453a9..aab459a 100644 --- a/bundles/raspberrypi/items.py +++ b/bundles/raspberrypi/items.py @@ -10,7 +10,7 @@ file_perms = { actions = { 'raspberrypi_assure_target': { 'command': f'systemctl set-default {default_target}', - 'unless': f'[ $(systemctl get-default) = "{default_target}" ]', + 'unless': f'[ "$(systemctl get-default)" = "{default_target}" ]', }, }