From 8a65459d69560836e124f2663e184dec0208e43a Mon Sep 17 00:00:00 2001 From: mwiegand Date: Wed, 10 Nov 2021 02:48:20 +0100 Subject: [PATCH] swapfile --- bundles/systemd-swap/items.py | 2 +- bundles/systemd-swap/metadata.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bundles/systemd-swap/items.py b/bundles/systemd-swap/items.py index f23886f..c919db3 100644 --- a/bundles/systemd-swap/items.py +++ b/bundles/systemd-swap/items.py @@ -1,4 +1,4 @@ -size = node.metadata.get('systemd-swap/size') +size = node.metadata.get('systemd-swap') assert isinstance(size, int) actions = { diff --git a/bundles/systemd-swap/metadata.py b/bundles/systemd-swap/metadata.py index 1b2c143..ffd62bb 100644 --- a/bundles/systemd-swap/metadata.py +++ b/bundles/systemd-swap/metadata.py @@ -1,7 +1,5 @@ defaults = { - 'systemd-swap': { - 'size': 2*10**9, - }, + 'systemd-swap': 2*10**9, 'systemd': { 'units': { 'swapfile.swap': {