mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
Bulk pep8 fixes - hand crafted (#33690)
* Bulk pep8 fixes - hand crafted Fix by hand the remaining issues that autopep8 couldn't * Next batch of hand crafted pep8 fixes * Ignore W503 https://github.com/PyCQA/pycodestyle/pull/499 * Revert more of W503
This commit is contained in:
parent
bcd189509e
commit
18529a275b
21 changed files with 57 additions and 87 deletions
|
@ -525,17 +525,14 @@ def find_datastore(module, s, datastore, config_target):
|
|||
ds = None
|
||||
if config_target:
|
||||
for d in config_target.Datastore:
|
||||
if (d.Datastore.Accessible and
|
||||
(datastore and d.Datastore.Name == datastore)
|
||||
or (not datastore)):
|
||||
if d.Datastore.Accessible and (datastore and d.Datastore.Name == datastore) or (not datastore):
|
||||
ds = d.Datastore.Datastore
|
||||
datastore = d.Datastore.Name
|
||||
break
|
||||
else:
|
||||
for ds_mor, ds_name in s.get_datastores().items():
|
||||
ds_props = VIProperty(s, ds_mor)
|
||||
if (ds_props.summary.accessible and (datastore and ds_name == datastore)
|
||||
or (not datastore)):
|
||||
if ds_props.summary.accessible and (datastore and ds_name == datastore) or (not datastore):
|
||||
ds = ds_mor
|
||||
datastore = ds_name
|
||||
if not ds:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue