mirror of
https://github.com/fwbuilder/fwbuilder
synced 2025-11-06 18:52:58 +01:00
Fix: Junos: use correct comment_symbol
This commit is contained in:
parent
6ad8299c6b
commit
db8b749212
@ -19,6 +19,7 @@ string fs_separator = "/";
|
||||
CompilerDriver_junosacl::CompilerDriver_junosacl(FWObjectDatabase *db) :
|
||||
CompilerDriver(db)
|
||||
{
|
||||
comment_symbol = "#";
|
||||
}
|
||||
|
||||
// create a copy of itself, including objdb
|
||||
|
||||
@ -26,6 +26,7 @@ namespace fwcompiler {
|
||||
protected:
|
||||
std::string system_configuration_script;
|
||||
std::string policy_script;
|
||||
std::string comment_symbol;
|
||||
|
||||
void printProlog(QTextStream &file, const std::string &prolog_code);
|
||||
|
||||
|
||||
@ -72,7 +72,8 @@ QString CompilerDriver_junosacl::assembleFwScript(Cluster *cluster,
|
||||
options->setStr("prolog_place", "");
|
||||
|
||||
assembleFwScriptInternal(cluster, fw, cluster_member,
|
||||
oscnf, &script_skeleton, &top_comment, "!", true);
|
||||
oscnf, &script_skeleton, &top_comment,
|
||||
QString::fromStdString(comment_symbol), true);
|
||||
return script_skeleton.expand();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user