mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-29 03:30:22 -07:00
Docs: fix its vs. it's (#9442)
* Fix its vs. it's. * Improvements from review. Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> * Improve formulations. Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> --------- Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
2f82bd8ece
commit
ec585392e5
60 changed files with 88 additions and 88 deletions
|
@ -46,8 +46,8 @@ class FileLock:
|
|||
'''
|
||||
Create a lock file based on path with flock to prevent other processes
|
||||
using given path.
|
||||
Please note that currently file locking only works when it's executed by
|
||||
the same user, I.E single user scenarios
|
||||
Please note that currently file locking only works when it is executed by
|
||||
the same user, for example single user scenarios
|
||||
|
||||
:kw path: Path (file) to lock
|
||||
:kw tmpdir: Path where to place the temporary .lock file
|
||||
|
|
|
@ -1160,8 +1160,8 @@ class KeycloakAPI(object):
|
|||
# prefer an exception since this is almost certainly a programming error in the module itself.
|
||||
raise Exception("Unable to delete group - one of group ID or name must be provided.")
|
||||
|
||||
# only lookup the name if cid isn't provided.
|
||||
# in the case that both are provided, prefer the ID, since it's one
|
||||
# only lookup the name if cid is not provided.
|
||||
# in the case that both are provided, prefer the ID, since it is one
|
||||
# less lookup.
|
||||
if cid is None and name is not None:
|
||||
for clientscope in self.get_clientscopes(realm=realm):
|
||||
|
@ -1719,7 +1719,7 @@ class KeycloakAPI(object):
|
|||
raise Exception("Unable to delete group - one of group ID or name must be provided.")
|
||||
|
||||
# only lookup the name if groupid isn't provided.
|
||||
# in the case that both are provided, prefer the ID, since it's one
|
||||
# in the case that both are provided, prefer the ID, since it is one
|
||||
# less lookup.
|
||||
if groupid is None and name is not None:
|
||||
for group in self.get_groups(realm=realm):
|
||||
|
@ -2071,7 +2071,7 @@ class KeycloakAPI(object):
|
|||
|
||||
def get_authentication_flow_by_alias(self, alias, realm='master'):
|
||||
"""
|
||||
Get an authentication flow by it's alias
|
||||
Get an authentication flow by its alias
|
||||
:param alias: Alias of the authentication flow to get.
|
||||
:param realm: Realm.
|
||||
:return: Authentication flow representation.
|
||||
|
|
|
@ -61,7 +61,7 @@ def keycloak_clientsecret_module_resolve_params(module, kc):
|
|||
client_id = module.params.get('client_id')
|
||||
|
||||
# only lookup the client_id if id isn't provided.
|
||||
# in the case that both are provided, prefer the ID, since it's one
|
||||
# in the case that both are provided, prefer the ID, since it is one
|
||||
# less lookup.
|
||||
if id is None:
|
||||
# Due to the required_one_of spec, client_id is guaranteed to not be None
|
||||
|
|
|
@ -119,7 +119,7 @@ class RedfishUtils(object):
|
|||
|
||||
# Note: This is also a fallthrough for properties that are
|
||||
# arrays of objects. Some services erroneously omit properties
|
||||
# within arrays of objects when not configured, and it's
|
||||
# within arrays of objects when not configured, and it is
|
||||
# expecting the client to provide them anyway.
|
||||
|
||||
if req_pyld[prop] != cur_pyld[prop]:
|
||||
|
@ -1177,7 +1177,7 @@ class RedfishUtils(object):
|
|||
return response
|
||||
|
||||
# If requested to wait for the service to be available again, block
|
||||
# until it's ready
|
||||
# until it is ready
|
||||
if wait:
|
||||
elapsed_time = 0
|
||||
start_time = time.time()
|
||||
|
@ -1190,7 +1190,7 @@ class RedfishUtils(object):
|
|||
while elapsed_time <= wait_timeout:
|
||||
status = self.check_service_availability()
|
||||
if status['available']:
|
||||
# It's available; we're done
|
||||
# It is available; we are done
|
||||
break
|
||||
time.sleep(5)
|
||||
elapsed_time = time.time() - start_time
|
||||
|
@ -1813,7 +1813,7 @@ class RedfishUtils(object):
|
|||
operation_results['status'] = data.get('TaskState', data.get('JobState'))
|
||||
operation_results['messages'] = data.get('Messages', [])
|
||||
else:
|
||||
# Error response body, which is a bit of a misnomer since it's used in successful action responses
|
||||
# Error response body, which is a bit of a misnomer since it is used in successful action responses
|
||||
operation_results['status'] = 'Completed'
|
||||
if response.status >= 400:
|
||||
operation_results['status'] = 'Exception'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue