From 7b2b741d0ceb9b297bae4e424f65718fd5a3e692 Mon Sep 17 00:00:00 2001 From: Darren Birkett Date: Mon, 18 Feb 2013 09:58:07 +0000 Subject: fix incorrectly defined ints as strs Change-Id: Ie2fd2d9e9eaecba2b7713862211c3060c24e51a6 Fixes: bug #1128911 --- nova/virt/libvirt/imagebackend.py | 2 +- nova/virt/libvirt/volume.py | 2 +- 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', -- cgit