Skip to content

Commit

Permalink
HDDS-4098. Improve om admin getserviceroles error message. (#1881)
Browse files Browse the repository at this point in the history
  • Loading branch information
ByronHsu authored Feb 2, 2021
1 parent 5f3e202 commit 9759542
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ public ClientProtocol createClient(String omServiceId) throws Exception {
.getClientProxy();
} else {
throw new OzoneClientException("This command works only on OzoneManager" +
" HA cluster. Service ID specified does not match" +
" with " + OZONE_OM_SERVICE_IDS_KEY + " defined in the " +
"configuration. Configured " + OZONE_OM_SERVICE_IDS_KEY + " are" +
conf.getTrimmedStringCollection(OZONE_OM_SERVICE_IDS_KEY));
" HA cluster. Service ID specified does not match" +
" with " + OZONE_OM_SERVICE_IDS_KEY + " defined in the " +
"configuration. Configured " + OZONE_OM_SERVICE_IDS_KEY + " are " +
conf.getTrimmedStringCollection(OZONE_OM_SERVICE_IDS_KEY) + "\n");
}
}

Expand All @@ -99,10 +99,10 @@ public OzoneManagerProtocolClientSideTranslatorPB createOmClient(
clientId);
} else {
throw new OzoneClientException("This command works only on OzoneManager" +
" HA cluster. Service ID specified does not match" +
" with " + OZONE_OM_SERVICE_IDS_KEY + " defined in the " +
"configuration. Configured " + OZONE_OM_SERVICE_IDS_KEY + " are" +
conf.getTrimmedStringCollection(OZONE_OM_SERVICE_IDS_KEY));
" HA cluster. Service ID specified does not match" +
" with " + OZONE_OM_SERVICE_IDS_KEY + " defined in the " +
"configuration. Configured " + OZONE_OM_SERVICE_IDS_KEY + " are " +
conf.getTrimmedStringCollection(OZONE_OM_SERVICE_IDS_KEY) + "\n");
}
}

Expand Down

0 comments on commit 9759542

Please sign in to comment.