so the exported auth can be re-imported.
Fixes: http://tracker.ceph.com/issues/22227
Signed-off-by: Kefu Chai <kchai@redhat.com>
#include <memory>
#include <sstream>
#include <algorithm>
+#include <boost/algorithm/string/replace.hpp>
#include "auth/KeyRing.h"
#include "common/ceph_context.h"
#include "common/config.h"
string caps;
using ceph::decode;
decode(caps, dataiter);
+ boost::replace_all(caps, "\"", "\\\"");
out << "\tcaps " << q->first << " = \"" << caps << '"' << std::endl;
}
}