mirror of
https://github.com/ceph/ceph
synced 2025-02-19 17:08:05 +00:00
radosgw-admin: allow setting zone when there is no realm
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
This commit is contained in:
parent
b474652070
commit
770846b2ee
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user