]> granicus.if.org Git - pdns/commitdiff
Improve readability of show-zone, changed "Active: 0" to "Inactive"
authorJob Snijders <job@instituut.net>
Mon, 21 Dec 2015 15:32:11 +0000 (16:32 +0100)
committerJob Snijders <job@instituut.net>
Mon, 21 Dec 2015 16:17:36 +0000 (17:17 +0100)
pdns/pdnsutil.cc

index ad8a2c55a254fc460fbbaafaafc7a5b0737d54e4..589100ad56cc7707bb4ef4d23a93e17183a7833d 100644 (file)
@@ -1149,7 +1149,7 @@ bool showZone(DNSSECKeeper& dk, const DNSName& zone)
         continue;
       }
       cout<<"ID = "<<value.second.id<<" ("<<(value.second.keyOrZone ? "KSK" : "ZSK")<<"), tag = "<<value.first.getDNSKEY().getTag();
-      cout<<", algo = "<<(int)value.first.d_algorithm<<", bits = "<<value.first.getKey()->getBits()<<"\tActive: "<<value.second.active<< " ( " + algname + " ) "<<endl;
+      cout<<", algo = "<<(int)value.first.d_algorithm<<", bits = "<<value.first.getKey()->getBits()<<"\t"<<((int)value.second.active == 1 ? "  A" : "Ina")<<"ctive ( " + algname + " ) "<<endl;
       if(value.second.keyOrZone || ::arg().mustDo("direct-dnskey") || g_verbose)
         cout<<(value.second.keyOrZone ? "KSK" : "ZSK")<<" DNSKEY = "<<zone.toString()<<" IN DNSKEY "<< value.first.getDNSKEY().getZoneRepresentation() << " ; ( "  + algname + " )" << endl;
       if(value.second.keyOrZone || g_verbose) {