Commit ffb26811 authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰
Browse files

[5151] Minor corrections after review:

 - remove missed debug printout
 - using pretty print to write the file
 - correctly grammar in the guide
parent 5cf82108
......@@ -150,7 +150,7 @@ will be sent to Kea and the responses received from Kea printed to standard outp
name used when starting Kea (passed as -c argument) will be used. Note
that the filename specified must not contain .. or backslashes. Kea
should be able to write its files only in the directory it is running
and any attempts to step out of that directory is rejected.</para>
and any attempts to step out of that directory will be rejected.</para>
An example command invocation looks like this:
......@@ -237,8 +237,6 @@ public:
void checkConfigWrite(const std::string& response_txt, int exp_status,
const std::string& exp_txt = "") {
// cout << "#### response=" << response_txt << endl;
ConstElementPtr rsp;
EXPECT_NO_THROW(rsp = Element::fromJSON(response_txt));
......@@ -218,7 +218,8 @@ Daemon::writeConfigFile(const std::string& config_file) const {
isc_throw(Unexpected, "Unable to open file " + config_file + " for writing");
out << cfg->str();
// Write the actual content using pretty printing.
isc::data::prettyPrint(cfg, out);
size_t bytes = static_cast<size_t>(out.tellp());
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment