summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Birkett <darren.birkett@gmail.com>2013-02-18 09:58:07 +0000
committerDarren Birkett <darren.birkett@gmail.com>2013-02-18 09:58:07 +0000
commit7b2b741d0ceb9b297bae4e424f65718fd5a3e692 (patch)
tree16f08847a72a484bb12badfe634fd019b6bc21dc
parentb91843666c86f9ccf223fa529273c4250d6177e9 (diff)
downloadnova-7b2b741d0ceb9b297bae4e424f65718fd5a3e692.tar.gz
nova-7b2b741d0ceb9b297bae4e424f65718fd5a3e692.tar.xz
nova-7b2b741d0ceb9b297bae4e424f65718fd5a3e692.zip
fix incorrectly defined ints as strs
Change-Id: Ie2fd2d9e9eaecba2b7713862211c3060c24e51a6 Fixes: bug #1128911
-rwxr-xr-xnova/virt/libvirt/imagebackend.py2
-rw-r--r--nova/virt/libvirt/volume.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/nova/virt/libvirt/imagebackend.py b/nova/virt/libvirt/imagebackend.py
index 0a84b22e5..ba75ccf8b 100755
--- a/nova/virt/libvirt/imagebackend.py
+++ b/nova/virt/libvirt/imagebackend.py
@@ -44,7 +44,7 @@ __imagebackend_opts = [
help='Create sparse logical volumes (with virtualsize)'
' if this flag is set to True.'),
cfg.IntOpt('libvirt_lvm_snapshot_size',
- default='1000',
+ default=1000,
help='The amount of storage (in megabytes) to allocate for LVM'
' snapshot copy-on-write blocks.'),
]
diff --git a/nova/virt/libvirt/volume.py b/nova/virt/libvirt/volume.py
index c368f66f6..df068bdb8 100644
--- a/nova/virt/libvirt/volume.py
+++ b/nova/virt/libvirt/volume.py
@@ -50,7 +50,7 @@ volume_opts = [
default=None,
help='Mount options passed to the nfs client. See section '
'of the nfs man page for details'),
- cfg.StrOpt('num_aoe_discover_tries',
+ cfg.IntOpt('num_aoe_discover_tries',
default=3,
help='number of times to rediscover AoE target to find volume'),
cfg.StrOpt('glusterfs_mount_point_base',