radosgw-admin: allow setting zone when there is no realm

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
This commit is contained in:
Orit Wasserman 2016-04-11 10:38:20 +02:00
parent b474652070
commit 770846b2ee

View File

@ -3315,7 +3315,7 @@ int main(int argc, char **argv)
if(zone.realm_id.empty()) {
RGWRealm realm(realm_id, realm_name);
int ret = realm.init(g_ceph_context, store);
if (ret < 0) {
if (ret < 0 && ret != -ENOENT) {
cerr << "failed to init realm: " << cpp_strerror(-ret) << std::endl;
return -ret;
}