diff options
| author | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2011-04-06 11:36:08 -0700 |
|---|---|---|
| committer | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2011-04-06 11:36:08 -0700 |
| commit | c649c8d5febab7d0dfa329bc5d78f0147383c5ee (patch) | |
| tree | 65d4991424b9f3e995e778d59f2500dce3242bcb | |
| parent | dbeab47bbdeceab0bef896c9d7646ae346c9dd3a (diff) | |
| download | nova-c649c8d5febab7d0dfa329bc5d78f0147383c5ee.tar.gz nova-c649c8d5febab7d0dfa329bc5d78f0147383c5ee.tar.xz nova-c649c8d5febab7d0dfa329bc5d78f0147383c5ee.zip | |
Use a more descriptive name for the flag to make it easier to understand
the purpose
| -rw-r--r-- | nova/virt/xenapi/vm_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/virt/xenapi/vm_utils.py b/nova/virt/xenapi/vm_utils.py index d29456ec6..cf2adb44c 100644 --- a/nova/virt/xenapi/vm_utils.py +++ b/nova/virt/xenapi/vm_utils.py @@ -49,7 +49,7 @@ LOG = logging.getLogger("nova.virt.xenapi.vm_utils") FLAGS = flags.FLAGS flags.DEFINE_string('default_os_type', 'linux', 'Default OS type') -flags.DEFINE_integer('timeout_block', 10, +flags.DEFINE_integer('block_device_creation_timeout', 10, 'time to wait for a block device to be created') XENAPI_POWER_STATE = { @@ -900,7 +900,7 @@ def remap_vbd_dev(dev): def _wait_for_device(dev): """Wait for device node to appear""" - for i in xrange(0, FLAGS.timeout_block): + for i in xrange(0, FLAGS.block_device_creation_timeout): if os.path.exists('/dev/%s' % dev): return time.sleep(1) |
