Fix pep8 alarms and version_added to 2.9

This commit is contained in:
Phillipe Smith 2019-05-29 09:10:15 -03:00
parent 8e6b6e95de
commit ed84a20a51

View file

@ -16,8 +16,8 @@ DOCUMENTATION = '''
module: os_group_facts module: os_group_facts
short_description: Retrieve facts about one or more OpenStack groups short_description: Retrieve facts about one or more OpenStack groups
extends_documentation_fragment: openstack extends_documentation_fragment: openstack
version_added: "2.1" version_added: "2.9"
author: "Ricardo Carrillo Cruz (@rcarrillocruz)" author: "Phillipe Smith (@phsmith)"
description: description:
- Retrieve facts about a one or more OpenStack groups - Retrieve facts about a one or more OpenStack groups
requirements: requirements:
@ -127,7 +127,7 @@ def main():
# We assume admin is passing domain id # We assume admin is passing domain id
dom = opcloud.get_domain(domain)['id'] dom = opcloud.get_domain(domain)['id']
domain = dom domain = dom
except: except Exception:
# If we fail, maybe admin is passing a domain name. # If we fail, maybe admin is passing a domain name.
# Note that domains have unique names, just like id. # Note that domains have unique names, just like id.
dom = opcloud.search_domains(filters={'name': domain}) dom = opcloud.search_domains(filters={'name': domain})