mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user