summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_disk_setup.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-09-27 12:56:01 -0400
committerScott Moser <smoser@ubuntu.com>2013-09-27 12:56:01 -0400
commit447404c45887d4e7de54ab4ac5278b05f6324691 (patch)
treedf85258503ed0cf748e9412ae9f98cbc2febeb99 /cloudinit/config/cc_disk_setup.py
parent77169e8aae023c8456dc16a2db225531a4e269a0 (diff)
downloadvyos-cloud-init-447404c45887d4e7de54ab4ac5278b05f6324691.tar.gz
vyos-cloud-init-447404c45887d4e7de54ab4ac5278b05f6324691.zip
fix probably debug code that explicitly set 'partition' to 'any'.
Diffstat (limited to 'cloudinit/config/cc_disk_setup.py')
-rw-r--r--cloudinit/config/cc_disk_setup.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cloudinit/config/cc_disk_setup.py b/cloudinit/config/cc_disk_setup.py
index fb404c5d..8b7581a7 100644
--- a/cloudinit/config/cc_disk_setup.py
+++ b/cloudinit/config/cc_disk_setup.py
@@ -576,10 +576,9 @@ def mkfs(cloud, fs_cfg):
When 'cmd' is provided then no other parameter is required.
"""
- fs_cfg['partition'] = 'any'
label = fs_cfg.get('label')
device = fs_cfg.get('device')
- partition = str(fs_cfg.get('partition'))
+ partition = str(fs_cfg.get('partition'), 'any')
fs_type = fs_cfg.get('filesystem')
fs_cmd = fs_cfg.get('cmd', [])
fs_opts = fs_cfg.get('extra_opts', [])