Don't rely on the conf-default value of rgw_nfs_frontends to
provide "rgw-nfs," as that's not optional when running under
librgw.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
g_conf().early_expand_meta(rgw_frontends_str, &cerr);
get_str_vec(rgw_frontends_str, ",", frontends);
- if (!nfs) {
+ /* default frontends */
+ if (nfs) {
+ const auto is_rgw_nfs = [](const auto& s){return s == "rgw-nfs";};
+ if (std::find_if(frontends.begin(), frontends.end(), is_rgw_nfs) == frontends.end()) {
+ frontends.push_back("rgw-nfs");
+ }
+ } else {
if (frontends.empty()) {
frontends.push_back("beast");
}