Hopefully removed the extra arrows

This commit is contained in:
Benjamyn Love 2017-09-25 08:51:44 +10:00
parent b5b24a67ce
commit 348ed3a1cc

View File

@ -134,12 +134,15 @@ def iterate(inArray, pre):
count = 0 count = 0
while count != len(inArray) - 1: while count != len(inArray) - 1:
#print checkIfIP(inArray[count].split('.')) #print checkIfIP(inArray[count].split('.'))
if checkIfIP(inArray[count].split('.')) == 0: if pre == "TXT" or pre == "SOA":
tmpVal = isCNAME(inArray[count])
print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET + " -> " + bcolors.GREEN + tmpVal[0] + bcolors.RESET
else:
print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET
else:
if checkIfIP(inArray[count].split('.')) == 0:
tmpVal = isCNAME(inArray[count])
print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET + " -> " + bcolors.GREEN + tmpVal[0] + bcolors.RESET
else:
print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET
count = count + 1 count = count + 1