summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_mounts.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2014-10-01 13:59:13 -0400
committerScott Moser <smoser@ubuntu.com>2014-10-01 13:59:13 -0400
commit96a5532ed39ace7ec7b80978387e26c9b203200f (patch)
treebb349557b8de89d2909ef09707916d89da87d6dd /cloudinit/config/cc_mounts.py
parent9736b260434af860c6ec81776f4278640f1fa9be (diff)
downloadvyos-cloud-init-96a5532ed39ace7ec7b80978387e26c9b203200f.tar.gz
vyos-cloud-init-96a5532ed39ace7ec7b80978387e26c9b203200f.zip
maxsize must be 'None' otherwise it is zero, and no swap allowed
Diffstat (limited to 'cloudinit/config/cc_mounts.py')
-rw-r--r--cloudinit/config/cc_mounts.py2
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")