Переглянути джерело

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