mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-03 09:58:29 +00:00
NodeConfig: simplify description parsing
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
354f5fffc7
commit
e61f1629e7
@ -128,11 +128,7 @@ sub parse_node_config {
|
||||
|
||||
my @lines = split(/\n/, $content);
|
||||
foreach my $line (@lines) {
|
||||
if ($line =~ /^\#(.*)\s*$/) {
|
||||
$descr .= PVE::Tools::decode_text($1) . "\n";
|
||||
next;
|
||||
}
|
||||
if ($line =~ /^description:\s*(.*\S)\s*$/) {
|
||||
if ($line =~ /^\#(.*)\s*$/ || $line =~ /^description:\s*(.*\S)\s*$/) {
|
||||
$descr .= PVE::Tools::decode_text($1) . "\n";
|
||||
next;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user