You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spot.apache.org by ev...@apache.org on 2017/03/29 16:52:07 UTC

[43/50] [abbrv] incubator-spot git commit: DNS OA - Fixed bug where the IANA codes where not being translated for the details

DNS OA - Fixed bug where the IANA codes where not being translated for the details


Project: http://git-wip-us.apache.org/repos/asf/incubator-spot/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spot/commit/9f4a5afb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spot/tree/9f4a5afb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spot/diff/9f4a5afb

Branch: refs/heads/SPOT-35_graphql_api
Commit: 9f4a5afb0bb6e67b9eceacbbb74841c38c59551f
Parents: 548eb17
Author: LedaLima <le...@apache.org>
Authored: Fri Mar 10 12:02:20 2017 -0600
Committer: Diego Ortiz Huerta <di...@intel.com>
Committed: Wed Mar 15 11:51:23 2017 -0700

----------------------------------------------------------------------
 spot-oa/oa/dns/dns_oa.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/9f4a5afb/spot-oa/oa/dns/dns_oa.py
----------------------------------------------------------------------
diff --git a/spot-oa/oa/dns/dns_oa.py b/spot-oa/oa/dns/dns_oa.py
index b636b92..71de7ea 100644
--- a/spot-oa/oa/dns/dns_oa.py
+++ b/spot-oa/oa/dns/dns_oa.py
@@ -324,7 +324,7 @@ class OA(object):
             if dns_iana:
                 self._logger.info("Adding IANA translation to details results") 
                     
-                dns_details = [ conn + (str(dns_iana.get_name(conn[5],"dns_qry_class")),str(dns_iana.get_name(conn[6],"dns_qry_type")),str(dns_iana.get_name(conn[7],"dns_qry_rcode"))) for conn in dns_details ]
+                dns_details = [ conn + (dns_iana.get_name(str(conn[5]),"dns_qry_class"),dns_iana.get_name(str(conn[6]),"dns_qry_type"),dns_iana.get_name(str(conn[7]),"dns_qry_rcode")) for conn in dns_details ]
             else: 
                 self._logger.info("WARNING: NO IANA configured.")
                 dns_details = [ conn + ("","","") for conn in dns_details ]