move record type out of try
, .upper() it
This commit is contained in:
parent
d093027431
commit
bc0af579d0
1 changed files with 1 additions and 1 deletions
|
@ -47,8 +47,8 @@ class Module(ModuleManager.BaseModule):
|
||||||
results = []
|
results = []
|
||||||
|
|
||||||
for record_type in record_types:
|
for record_type in record_types:
|
||||||
|
record_type_strip = record_type.rstrip("?").upper()
|
||||||
try:
|
try:
|
||||||
record_type_strip = record_type.rstrip("?")
|
|
||||||
query_result = resolver.query(hostname, record_type_strip,
|
query_result = resolver.query(hostname, record_type_strip,
|
||||||
lifetime=4)
|
lifetime=4)
|
||||||
query_results = [q.to_text() for q in query_result]
|
query_results = [q.to_text() for q in query_result]
|
||||||
|
|
Loading…
Reference in a new issue