scstadmin: Whitespace fixes for the -write_config changes introduced in r3606.

Separate device handler key and non-key attributes with a single blank line
instead of two. Indent <target>.<lun>.<attribute> with three tabs instead
of four.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3646 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-06-30 18:40:29 +00:00
parent f36e96833d
commit d48497f4d3

View File

@@ -1127,7 +1127,6 @@ sub writeConfiguration {
$attribute_buff_nk .= "\n" if ($attribute_buff_nk);
if ($attribute_buff_nk) {
$attribute_buff .= "\n" if ($attribute_buff);
$attribute_buff .= "\t\t# Non-key attributes\n";
$attribute_buff .= $attribute_buff_nk;
}
@@ -1205,16 +1204,16 @@ sub writeConfiguration {
my $attributes = $SCST->lunAttributes($driver, $target, $lun);
my $l_attribute_buff =
serializeKeyAttr("\t\t\t\t",
serializeKeyAttr("\t\t\t",
$attributes,
$lun_attrs);
my $l_attribute_buff_nk =
serializeNkAttr("\t\t\t\t",
serializeNkAttr("\t\t\t",
$attributes,
$lun_attrs) if ($nonkey);
if ($l_attribute_buff_nk) {
$l_attribute_buff .= "\t\t\t\t# Non-key attributes\n";
$l_attribute_buff .= "\t\t\t# Non-key attributes\n";
$l_attribute_buff .= $l_attribute_buff_nk;
}