Skip to content

Commit

Permalink
Merge branch 'dns2' of github.com:opentelekomcloud/ansible-collection…
Browse files Browse the repository at this point in the history
…-cloud into dns2
  • Loading branch information
tischrei committed Nov 3, 2020
2 parents 219e9c0 + 888a57b commit f8c07ae
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions plugins/modules/dns_zone_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
description:
- Get NAT gateway info from the OTC.
options:
created_at:
description:
- Time when the zone was created
type: str
description:
description:
- DNS Zone Description
Expand Down Expand Up @@ -60,10 +56,6 @@
description:
- TTL value of the SOA record set in the zone
type: int
updated_at:
description:
- Time when the zone was updated
type: str
zone_type:
description:
- DNS Zone type
Expand All @@ -83,10 +75,6 @@
type: complex
returned: On Success.
contains:
created_at:
description: Time when the zone was created
type: str
sample: "2020-09-10T19:40:29.362"
description:
description: Description of the zone
type: str
Expand Down Expand Up @@ -123,10 +111,6 @@
description: TTL value of the SOA record set in the zone
type: int
sample: 300
updated_at:
description: Time when the zone was updated
type: str
sample: "2020-09-10T19:40:29.362"
zone_type:
description: DNS Zone type
type: str
Expand Down Expand Up @@ -160,7 +144,6 @@

class DNSZoneInfoModule(OTCModule):
argument_spec = dict(
created_at=dict(required=False),
description=dict(required=False),
email=dict(required=False),
name=dict(required=False),
Expand All @@ -170,7 +153,6 @@ class DNSZoneInfoModule(OTCModule):
serial=dict(required=False, type='int'),
status=dict(required=False),
ttl=dict(required=False, type='int'),
updated_at=dict(required=False),
zone_type=dict(required=True),
zone_id=dict(required=False)
)
Expand Down Expand Up @@ -241,16 +223,6 @@ def run(self):
del data[i]
i = 0
continue
if self.params['created_at']:
if data[i]['created_at'] != self.params['created_at']:
del data[i]
i = 0
continue
if self.params['updated_at']:
if data[i]['updated_at'] != self.params['updated_at']:
del data[i]
i = 0
continue
i = i + 1

self.exit(
Expand Down

0 comments on commit f8c07ae

Please sign in to comment.