diff options
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/config/cc_mounts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_mounts.py b/cloudinit/config/cc_mounts.py index b9aa9a12..ded0f413 100644 --- a/cloudinit/config/cc_mounts.py +++ b/cloudinit/config/cc_mounts.py @@ -168,7 +168,7 @@ def handle_swapcfg(swapcfg): """ fname = swapcfg.get('filename', '/swap.img') size = swapcfg.get('size', 0) - maxsize = swapcfg.get('maxsize', 0) + maxsize = swapcfg.get('maxsize', None) if not (size and fname): LOG.debug("no need to setup swap") |