From 80bf5e5e9541359d86e12958686f2678d220dd60 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Wed, 22 Aug 2012 12:02:41 -0700 Subject: Fix hyperv Cfgs: StrOpt to IntOpt Change hyperv_attaching_volume_retry_count and hyperv_wait_between_attach_retry from StrOpt to IntOpt Fix bug 1040246 Change-Id: I8a70212cbc6852bdab4190ac8eb314d10e1a1ed5 --- nova/virt/hyperv/volumeops.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nova/virt/hyperv/volumeops.py b/nova/virt/hyperv/volumeops.py index a8e5299c0..d15dfb68c 100644 --- a/nova/virt/hyperv/volumeops.py +++ b/nova/virt/hyperv/volumeops.py @@ -32,10 +32,10 @@ from nova.virt.hyperv import volumeutils LOG = logging.getLogger(__name__) hyper_volumeops_opts = [ - cfg.StrOpt('hyperv_attaching_volume_retry_count', + cfg.IntOpt('hyperv_attaching_volume_retry_count', default=10, help='The number of times we retry on attaching volume '), - cfg.StrOpt('hyperv_wait_between_attach_retry', + cfg.IntOpt('hyperv_wait_between_attach_retry', default=5, help='The seconds to wait between an volume attachment attempt'), ] -- cgit