diff options
author | Sabari Kumar Murugesan <smurugesan@vmware.com> | 2015-03-11 11:42:44 -0700 |
---|---|---|
committer | Sabari Kumar Murugesan <smurugesan@vmware.com> | 2015-03-11 11:42:47 -0700 |
commit | 4f05481c5bf00b90e05c2d5a909b52219958b1a7 (patch) | |
tree | ff28ebe55bfa8568573f5b5949d8e87b6e5a54ed | |
parent | b8d62633ec85871911c2d234c787857695233eb1 (diff) | |
download | glance_store-4f05481c5bf00b90e05c2d5a909b52219958b1a7.tar.gz |
Update help text with sample conf
The help text for vmware_datastores needs to be in sync with the
sample conf in glance. This will ensure there is no loss of
information when we move to generating the config file.
Change-Id: I0f727ba696ae2b9fd19b4ffc5c8acdbf8c0a2d86
-rw-r--r-- | glance_store/_drivers/vmware_datastore.py | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/glance_store/_drivers/vmware_datastore.py b/glance_store/_drivers/vmware_datastore.py index f58edb7..3074d41 100644 --- a/glance_store/_drivers/vmware_datastore.py +++ b/glance_store/_drivers/vmware_datastore.py @@ -94,14 +94,24 @@ _VMWARE_OPTS = [ cfg.BoolOpt('vmware_api_insecure', default=False, help=_('Allow to perform insecure SSL requests to ESX/VC.')), - cfg.MultiStrOpt('vmware_datastores', - help=_('The datastores where the images are stored inside ' - 'vCenter. The expected format is ' - 'datacenter_path:datastore_name:weight. The weight ' - 'will be used unless there is not enough free ' - 'space to store the image. If the weights are ' - 'equal, the datastore with most free space ' - 'is chosen.'))] + cfg.MultiStrOpt( + 'vmware_datastores', + help=_( + 'A list of datastores where the image can be stored. This option ' + 'may be specified multiple times for specifying multiple ' + 'datastores. Either one of vmware_datastore_name or ' + 'vmware_datastores is required. The datastore name should be ' + 'specified after its datacenter path, seperated by ":". An ' + 'optional weight may be given after the datastore name, seperated ' + 'again by ":". Thus, the required format becomes ' + '<datacenter_path>:<datastore_name>:<optional_weight>. When ' + 'adding an image, the datastore with highest weight will be ' + 'selected, unless there is not enough free space available in ' + 'cases where the image size is already known. If no weight is ' + 'given, it is assumed to be zero and the directory will be ' + 'considered for selection last. If multiple datastores have the ' + 'same weight, then the one with the most free space available is ' + 'selected.'))] def is_valid_ipv6(address): |