瀏覽代碼

HPCC-23486 --init should print the passed-in default Yaml

Not a recreated string from the propertyTree

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 5 年之前
父節點
當前提交
f613314596
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      system/jlib/jptree.cpp

+ 1 - 3
system/jlib/jptree.cpp

@@ -7945,9 +7945,7 @@ jlib_decl IPropertyTree * loadConfiguration(const char * defaultYaml, const char
         }
         else if (strsame(cur, "--init"))
         {
-            StringBuffer jsonText;
-            regenerateConfig(jsonText, config, componentTag);
-            printf("%s\n", jsonText.str());
+            printf("%s\n", defaultYaml);
             exit(0);
         }
 #ifdef _DEBUG