Fix duplicated words issue like "was not not found"

This is to fix the duplicated words issue like
"if the field was not not found in any elements".

Change-Id: I7504354ec8b258cce0e3788c7d306d4ea2864ef4
This commit is contained in:
zhufl 2020-01-06 14:25:17 +08:00
parent 25d9aa7de8
commit 8caa5ea866
6 changed files with 7 additions and 8 deletions

View File

@ -150,8 +150,7 @@ built-in property objects, but they share only the name - they're not the same.
Properties are set based on the contents of a response body or headers.
Based on what your resource returns, you should set ``prop``\s to map
those those values to ones on your :class:`~openstack.resource.Resource`
object.
those values to ones on your :class:`~openstack.resource.Resource` object.
*Line 22* sets a prop for ``timestamp`` , which will cause the
``Fake.timestamp`` attribute to contain the value returned in an

View File

@ -126,7 +126,7 @@ class BaremetalCloudMixin(_normalize.Normalizer):
node = self.baremetal.get_node(name_or_id)
# NOTE(TheJulia): If in available state, we can do this. However,
# we need to to move the machine back to manageable first.
# we need to move the machine back to manageable first.
if node.provision_state == 'available':
if node.instance_id:
raise exc.OpenStackCloudException(

View File

@ -762,7 +762,7 @@ class ComputeCloudMixin(_normalize.Normalizer):
needed (defaults to True)
:param network: (optional) Network dict or name or ID to attach the
server to. Mutually exclusive with the nics parameter.
Can also be be a list of network names or IDs or
Can also be a list of network names or IDs or
network dicts.
:param boot_from_volume: Whether to boot from volume. 'boot_volume'
implies True, but boot_from_volume=True with

View File

@ -949,7 +949,7 @@ class NetworkCloudMixin(_normalize.Normalizer):
Short-circuits and returns the firewall policy early if the firewall
rule id is already present in the firewall_rules list.
This method doesn't do re-ordering. If you want to move a firewall rule
or or down the list, you have to remove and re-add it.
or down the list, you have to remove and re-add it.
:param name_or_id: firewall policy name or id
:param rule_name_or_id: firewall rule name or id

View File

@ -452,7 +452,7 @@ def safe_dict_min(key, data):
:param string key: The dictionary key to search for the minimum value.
:param list data: List of dicts to use for the data set.
:returns: None if the field was not not found in any elements, or
:returns: None if the field was not found in any elements, or
the minimum value for the field otherwise.
"""
min_value = None
@ -484,7 +484,7 @@ def safe_dict_max(key, data):
:param string key: The dictionary key to search for the maximum value.
:param list data: List of dicts to use for the data set.
:returns: None if the field was not not found in any elements, or
:returns: None if the field was not found in any elements, or
the maximum value for the field otherwise.
"""
max_value = None

View File

@ -619,7 +619,7 @@ class Proxy(proxy.Proxy):
``os.nova.sever-1.0``.
* identity: (Required) A string including the name or ID of an
OpenStack resource to be adopted as a Senlin node.
* name: (Optional) The name of of node to be created. Omitting
* name: (Optional) The name of node to be created. Omitting
this parameter will have the node named automatically.
* snapshot: (Optional) A boolean indicating whether a snapshot
of the target resource should be created if possible. Default