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': {