Context: Added filter prep for write commands that don't instantiate Filter

This commit is contained in:
Paul Beckingham 2015-08-02 10:26:05 -04:00
parent 941e8c9f37
commit d9fc334098

View file

@ -453,7 +453,11 @@ int Context::dispatch (std::string &out)
// This is something that is only needed for write commands with no other
// filter processing.
cli2.prepareFilter ();
if (! c->read_only () &&
! c->accepts_filter ())
{
cli2.prepareFilter ();
}
return c->execute (out);
}