mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Fix indentation in ovirt.py inventory
This commit is contained in:
@@ -172,9 +172,9 @@ class OVirtInventory(object):
|
|||||||
|
|
||||||
# If the appropriate environment variables are set, they override
|
# If the appropriate environment variables are set, they override
|
||||||
# other configuration; process those into our args and kwargs.
|
# other configuration; process those into our args and kwargs.
|
||||||
kwargs['url'] = os.environ.get('OVIRT_URL', kwargs['url'])
|
kwargs['url'] = os.environ.get('OVIRT_URL', kwargs['url'])
|
||||||
kwargs['username'] = next(val for val in [os.environ.get('OVIRT_EMAIL'), os.environ.get('OVIRT_USERNAME'), kwargs['username']] if val is not None)
|
kwargs['username'] = next(val for val in [os.environ.get('OVIRT_EMAIL'), os.environ.get('OVIRT_USERNAME'), kwargs['username']] if val is not None)
|
||||||
kwargs['password'] = next(val for val in [os.environ.get('OVIRT_PASS'), os.environ.get('OVIRT_PASSWORD'), kwargs['password']] if val is not None)
|
kwargs['password'] = next(val for val in [os.environ.get('OVIRT_PASS'), os.environ.get('OVIRT_PASSWORD'), kwargs['password']] if val is not None)
|
||||||
|
|
||||||
# Retrieve and return the ovirt driver.
|
# Retrieve and return the ovirt driver.
|
||||||
return API(insecure=True, **kwargs)
|
return API(insecure=True, **kwargs)
|
||||||
|
|||||||
Reference in New Issue
Block a user