Skip to content

Commit f8c07ae

Browse files
committed
Merge branch 'dns2' of github.com:opentelekomcloud/ansible-collection-cloud into dns2
2 parents 219e9c0 + 888a57b commit f8c07ae

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

plugins/modules/dns_zone_info.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
description:
2121
- Get NAT gateway info from the OTC.
2222
options:
23-
created_at:
24-
description:
25-
- Time when the zone was created
26-
type: str
2723
description:
2824
description:
2925
- DNS Zone Description
@@ -60,10 +56,6 @@
6056
description:
6157
- TTL value of the SOA record set in the zone
6258
type: int
63-
updated_at:
64-
description:
65-
- Time when the zone was updated
66-
type: str
6759
zone_type:
6860
description:
6961
- DNS Zone type
@@ -83,10 +75,6 @@
8375
type: complex
8476
returned: On Success.
8577
contains:
86-
created_at:
87-
description: Time when the zone was created
88-
type: str
89-
sample: "2020-09-10T19:40:29.362"
9078
description:
9179
description: Description of the zone
9280
type: str
@@ -123,10 +111,6 @@
123111
description: TTL value of the SOA record set in the zone
124112
type: int
125113
sample: 300
126-
updated_at:
127-
description: Time when the zone was updated
128-
type: str
129-
sample: "2020-09-10T19:40:29.362"
130114
zone_type:
131115
description: DNS Zone type
132116
type: str
@@ -160,7 +144,6 @@
160144

161145
class DNSZoneInfoModule(OTCModule):
162146
argument_spec = dict(
163-
created_at=dict(required=False),
164147
description=dict(required=False),
165148
email=dict(required=False),
166149
name=dict(required=False),
@@ -170,7 +153,6 @@ class DNSZoneInfoModule(OTCModule):
170153
serial=dict(required=False, type='int'),
171154
status=dict(required=False),
172155
ttl=dict(required=False, type='int'),
173-
updated_at=dict(required=False),
174156
zone_type=dict(required=True),
175157
zone_id=dict(required=False)
176158
)
@@ -241,16 +223,6 @@ def run(self):
241223
del data[i]
242224
i = 0
243225
continue
244-
if self.params['created_at']:
245-
if data[i]['created_at'] != self.params['created_at']:
246-
del data[i]
247-
i = 0
248-
continue
249-
if self.params['updated_at']:
250-
if data[i]['updated_at'] != self.params['updated_at']:
251-
del data[i]
252-
i = 0
253-
continue
254226
i = i + 1
255227

256228
self.exit(

0 commit comments

Comments
 (0)