]> granicus.if.org Git - pdns/commitdiff
remote experimental printing of new kind of table from dnsdist console
authorbert hubert <bert.hubert@powerdns.com>
Thu, 16 Jun 2016 12:32:33 +0000 (14:32 +0200)
committerbert hubert <bert.hubert@powerdns.com>
Thu, 16 Jun 2016 12:32:33 +0000 (14:32 +0200)
pdns/dnsdist-console.cc

index dabd5e7005daeecbcbf40ee952996dee7223cf27..eb1476dcd630aa41ded7a52c576faed8c35540bb 100644 (file)
@@ -153,8 +153,7 @@ void doConsole()
             boost::variant<
               string, 
               shared_ptr<DownstreamState>,
-              std::unordered_map<string, double>,
-              std::vector<pair<unsigned int, std::unordered_map<string, string> > >
+              std::unordered_map<string, double>
               >
             >
           >(withReturn ? ("return "+line) : line);
@@ -174,20 +173,6 @@ void doConsole()
             Json out = o;
             cout<<out.dump()<<endl;
           }
-          else if(const auto um = boost::get<std::vector<pair<unsigned int, std::unordered_map<string, string> > >>(&*ret)) {
-            cerr<<"So.. "<<um->size()<<endl;
-            using namespace json11;
-
-            Json::array a;
-            for(auto& e : *um) {
-              Json::object o;
-              o["qname"]=e.second["qname"];
-              o["rcode"]=e.second["rcode"];
-              a.push_back(o);
-            }
-            Json out=a;
-            cout<<out.dump()<<endl;
-          }
         }
         else 
           cout << g_outputBuffer;