diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-09-06 14:52:53 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-09-06 14:52:53 -0400 |
commit | 75bec162045856b39b483d11a0b3a7a75886efd2 (patch) | |
tree | 344d6051430e913db721615c7b3a64648ce9ca68 | |
parent | 1d239f9beec5d556e4551c684f551843c5553997 (diff) | |
download | vyos-cloud-init-75bec162045856b39b483d11a0b3a7a75886efd2.tar.gz vyos-cloud-init-75bec162045856b39b483d11a0b3a7a75886efd2.zip |
do not convert type None to string in cfgmnt.
LP: #1046946
-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 d3dcf7af..14c965bb 100644 --- a/cloudinit/config/cc_mounts.py +++ b/cloudinit/config/cc_mounts.py @@ -92,7 +92,7 @@ def handle(_name, cfg, cloud, log, _args): # in case the user did not quote a field (likely fs-freq, fs_passno) # but do not convert None to 'None' (LP: #898365) for j in range(len(cfgmnt[i])): - if j is None: + if cfgmnt[i][j] is None: continue else: cfgmnt[i][j] = str(cfgmnt[i][j]) |