Skip to content

Commit

Permalink
fix black
Browse files Browse the repository at this point in the history
  • Loading branch information
resmo committed Sep 25, 2024
1 parent 8913bfa commit 71fd8de
Show file tree
Hide file tree
Showing 51 changed files with 75 additions and 84 deletions.
68 changes: 15 additions & 53 deletions plugins/modules/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,59 +393,21 @@ def main():
argument_spec = cs_argument_spec()
argument_spec.update(
dict(
name=dict(
type="str",
required=True,
),
state=dict(
type="str",
choices=["present", "absent", "enabled", "disabled", "locked", "unlocked"],
default="present",
),
account_type=dict(
choices=["user", "root_admin", "domain_admin"],
default="user",
),
network_domain=dict(
type="str",
),
domain=dict(
default="ROOT",
),
email=dict(
type="str",
),
first_name=dict(
type="str",
),
last_name=dict(
type="str",
),
username=dict(
type="str",
),
password=dict(
type="str",
no_log=True,
),
timezone=dict(
type="str",
),
role=dict(
type="str",
),
ldap_domain=dict(
type="str",
),
ldap_type=dict(
type="str",
choices=["GROUP", "OU"],
default="GROUP",
),
poll_async=dict(
type="bool",
default=True,
),
name=dict(type="str", required=True),
state=dict(type="str", choices=["present", "absent", "enabled", "disabled", "locked", "unlocked"], default="present"),
account_type=dict(choices=["user", "root_admin", "domain_admin"], default="user"),
network_domain=dict(type="str"),
domain=dict(default="ROOT"),
email=dict(type="str"),
first_name=dict(type="str"),
last_name=dict(type="str"),
username=dict(type="str"),
password=dict(type="str", no_log=True),
timezone=dict(type="str"),
role=dict(type="str"),
ldap_domain=dict(type="str"),
ldap_type=dict(type="str", choices=["GROUP", "OU"], default="GROUP"),
poll_async=dict(type="bool", default=True),
)
)

Expand Down
36 changes: 8 additions & 28 deletions plugins/modules/affinity_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,34 +199,14 @@ def main():
argument_spec = cs_argument_spec()
argument_spec.update(
dict(
name=dict(
type="str",
required=True,
),
affinity_type=dict(
type="str",
),
description=dict(
type="str",
),
state=dict(
type="str",
choices=["present", "absent"],
default="present",
),
domain=dict(
type="str",
),
account=dict(
type="str",
),
project=dict(
type="str",
),
poll_async=dict(
type="bool",
default=True,
),
name=dict(type="str", required=True),
affinity_type=dict(type="str"),
description=dict(type="str"),
state=dict(type="str", choices=["present", "absent"], default="present"),
domain=dict(type="str"),
account=dict(type="str"),
project=dict(type="str"),
poll_async=dict(type="bool", default=True),
)
)

Expand Down
1 change: 1 addition & 0 deletions plugins/modules/disk_offering.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@


class AnsibleCloudStackDiskOffering(AnsibleCloudStack):
"""AnsibleCloudStackDiskOffering"""

def __init__(self, module):
super(AnsibleCloudStackDiskOffering, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@


class AnsibleCloudStackDomain(AnsibleCloudStack):
"""AnsibleCloudStackDomain"""

def __init__(self, module):
super(AnsibleCloudStackDomain, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/firewall.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@


class AnsibleCloudStackFirewall(AnsibleCloudStack):
"""AnsibleCloudStackFirewall"""

def __init__(self, module):
super(AnsibleCloudStackFirewall, self).__init__(module)
Expand Down
4 changes: 3 additions & 1 deletion plugins/modules/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,12 @@

from ansible.module_utils.basic import AnsibleModule

from ..module_utils.cloudstack import AnsibleCloudStack, cs_argument_spec, cs_required_together
from ..module_utils.cloudstack import (AnsibleCloudStack, cs_argument_spec,
cs_required_together)


class AnsibleCloudStackHost(AnsibleCloudStack):
"""AnsibleCloudStackHost"""

def __init__(self, module):
super(AnsibleCloudStackHost, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/image_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@


class AnsibleCloudstackImageStore(AnsibleCloudStack):
"""AnsibleCloudstackImageStore"""

def __init__(self, module):
super(AnsibleCloudstackImageStore, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@


class AnsibleCloudStackInstance(AnsibleCloudStack):
"""AnsibleCloudStackInstance"""

def __init__(self, module):
super(AnsibleCloudStackInstance, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/instance_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@


class AnsibleCloudStackInstanceGroup(AnsibleCloudStack):
"""AnsibleCloudStackInstanceGroup"""

def __init__(self, module):
super(AnsibleCloudStackInstanceGroup, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/instance_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@


class AnsibleCloudStackInstanceInfo(AnsibleCloudStack):
"""AnsibleCloudStackInstanceInfo"""

def __init__(self, module):
super(AnsibleCloudStackInstanceInfo, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/instance_nic.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@


class AnsibleCloudStackInstanceNic(AnsibleCloudStack):
"""AnsibleCloudStackInstanceNic"""

def __init__(self, module):
super(AnsibleCloudStackInstanceNic, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/instance_nic_secondaryip.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@


class AnsibleCloudStackInstanceNicSecondaryIp(AnsibleCloudStack):
"""AnsibleCloudStackInstanceNicSecondaryIp"""

def __init__(self, module):
super(AnsibleCloudStackInstanceNicSecondaryIp, self).__init__(module)
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/instance_password_reset.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@

from ansible.module_utils.basic import AnsibleModule

from ..module_utils.cloudstack import (AnsibleCloudStack, cs_argument_spec,
cs_required_together)
from ..module_utils.cloudstack import AnsibleCloudStack, cs_argument_spec, cs_required_together


class AnsibleCloudStackPasswordReset(AnsibleCloudStack):
"""AnsibleCloudStackPasswordReset"""

def __init__(self, module):
super(AnsibleCloudStackPasswordReset, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/instance_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@


class AnsibleCloudStackVmSnapshot(AnsibleCloudStack):
"""AnsibleCloudStackVmSnapshot"""

def __init__(self, module):
super(AnsibleCloudStackVmSnapshot, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/ip_address.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@


class AnsibleCloudStackIPAddress(AnsibleCloudStack):
"""AnsibleCloudStackIPAddress"""

def __init__(self, module):
super(AnsibleCloudStackIPAddress, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/iso.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@


class AnsibleCloudStackIso(AnsibleCloudStack):
"""AnsibleCloudStackIso"""

def __init__(self, module):
super(AnsibleCloudStackIso, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/lb_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@


class AnsibleCloudStackLBRule(AnsibleCloudStack):
"""AnsibleCloudStackLBRule"""

def __init__(self, module):
super(AnsibleCloudStackLBRule, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/lb_rule_member.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@


class AnsibleCloudStackLBRuleMember(AnsibleCloudStack):
"""AnsibleCloudStackLBRuleMember"""

def __init__(self, module):
super(AnsibleCloudStackLBRuleMember, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/metadata_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@


class CloudStackFacts(object):
"""CloudStackFacts"""

def __init__(self):
collector = ansible_collector.get_ansible_collector(
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@


class AnsibleCloudStackNetwork(AnsibleCloudStack):
"""AnsibleCloudStackNetwork"""

def __init__(self, module):
super(AnsibleCloudStackNetwork, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/network_acl.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@


class AnsibleCloudStackNetworkAcl(AnsibleCloudStack):
"""AnsibleCloudStackNetworkAcl"""

def __init__(self, module):
super(AnsibleCloudStackNetworkAcl, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/network_acl_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@


class AnsibleCloudStackNetworkAclRule(AnsibleCloudStack):
"""AnsibleCloudStackNetworkAclRule"""

def __init__(self, module):
super(AnsibleCloudStackNetworkAclRule, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/network_offering.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@


class AnsibleCloudStackNetworkOffering(AnsibleCloudStack):
"""AnsibleCloudStackNetworkOffering"""

def __init__(self, module):
super(AnsibleCloudStackNetworkOffering, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/physical_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@


class AnsibleCloudStackPhysicalNetwork(AnsibleCloudStack):
"""AnsibleCloudStackPhysicalNetwork"""

def __init__(self, module):
super(AnsibleCloudStackPhysicalNetwork, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/pod.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@


class AnsibleCloudStackPod(AnsibleCloudStack):
"""AnsibleCloudStackPod"""

def __init__(self, module):
super(AnsibleCloudStackPod, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/portforward.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@


class AnsibleCloudStackPortforwarding(AnsibleCloudStack):
"""AnsibleCloudStackPortforwarding"""

def __init__(self, module):
super(AnsibleCloudStackPortforwarding, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@


class AnsibleCloudStackProject(AnsibleCloudStack):
"""AnsibleCloudStackProject"""

def get_project(self):
if not self.project:
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/region.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@


class AnsibleCloudStackRegion(AnsibleCloudStack):
"""AnsibleCloudStackRegion"""

def __init__(self, module):
super(AnsibleCloudStackRegion, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/resource_limit.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@


class AnsibleCloudStackResourceLimit(AnsibleCloudStack):
"""AnsibleCloudStackResourceLimit"""

def __init__(self, module):
super(AnsibleCloudStackResourceLimit, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@


class AnsibleCloudStackRole(AnsibleCloudStack):
"""AnsibleCloudStackRole"""

def __init__(self, module):
super(AnsibleCloudStackRole, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/role_permission.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@


class AnsibleCloudStackRolePermission(AnsibleCloudStack):
"""AnsibleCloudStackRolePermission"""

def __init__(self, module):
super(AnsibleCloudStackRolePermission, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@


class AnsibleCloudStackRouter(AnsibleCloudStack):
"""AnsibleCloudStackRouter"""

def __init__(self, module):
super(AnsibleCloudStackRouter, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/security_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@


class AnsibleCloudStackSecurityGroup(AnsibleCloudStack):
"""AnsibleCloudStackSecurityGroup"""

def __init__(self, module):
super(AnsibleCloudStackSecurityGroup, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/security_group_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@


class AnsibleCloudStackSecurityGroupRule(AnsibleCloudStack):
"""AnsibleCloudStackSecurityGroupRule"""

def __init__(self, module):
super(AnsibleCloudStackSecurityGroupRule, self).__init__(module)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/service_offering.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@


class AnsibleCloudStackServiceOffering(AnsibleCloudStack):
"""AnsibleCloudStackServiceOffering"""

def __init__(self, module):
super(AnsibleCloudStackServiceOffering, self).__init__(module)
Expand Down
Loading

0 comments on commit 71fd8de

Please sign in to comment.