Fixed a bug that could cause scstadmin -write_config to generate an invalid

configuration file, e.g.
...
               GROUP a         }
...

Reported-by: Frank Zago <fzago@systemfabricworks.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2952 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2010-12-07 09:35:18 +00:00
parent 1fe5da1dea
commit 4afc6e1713

View File

@@ -1405,9 +1405,8 @@ sub writeConfiguration {
}
}
$group_buff .= " {\n";
if ($lun_buff || $init_buff) {
$group_buff .= " {\n";
if ($lun_buff) {
$group_buff .= $lun_buff;
}