HDDS-466. Handle null in argv of StorageContainerManager#createSCM. Contributed by Nanda kumar
This commit is contained in:
parent
6f037468bc
commit
b0a659c8c0
@ -376,9 +376,10 @@ private static void printUsage(PrintStream out) {
|
|||||||
out.println(USAGE + "\n");
|
out.println(USAGE + "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static StorageContainerManager createSCM(String[] argv,
|
public static StorageContainerManager createSCM(String[] args,
|
||||||
OzoneConfiguration conf)
|
OzoneConfiguration conf)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
|
String[] argv = (args == null) ? new String[0] : args;
|
||||||
if (!HddsUtils.isHddsEnabled(conf)) {
|
if (!HddsUtils.isHddsEnabled(conf)) {
|
||||||
System.err.println(
|
System.err.println(
|
||||||
"SCM cannot be started in secure mode or when " + OZONE_ENABLED + "" +
|
"SCM cannot be started in secure mode or when " + OZONE_ENABLED + "" +
|
||||||
|
Loading…
Reference in New Issue
Block a user