projects
/
pve-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf6a4c5
)
print defaulttxt as sprintf parameter
author
Dominik Csapak
<d.csapak@proxmox.com>
Thu, 6 Jun 2019 09:03:56 +0000
(11:03 +0200)
committer
Thomas Lamprecht
<t.lamprecht@proxmox.com>
Thu, 6 Jun 2019 09:29:19 +0000
(11:29 +0200)
instead of having it verbatim in the format string.
This enables us to have '%' in the defaulttext without getting errors
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/PVE/RESTHandler.pm
patch
|
blob
|
blame
|
history
diff --git
a/src/PVE/RESTHandler.pm
b/src/PVE/RESTHandler.pm
index 49d43b94593c2f802b336271033d4df962024dea..75d5d2e6dcfc5460ecc8524b8dc505005b4340c2 100644
(file)
--- a/
src/PVE/RESTHandler.pm
+++ b/
src/PVE/RESTHandler.pm
@@
-538,7
+538,7
@@
my $get_property_description = sub {
die "unknown style '$style'";
}
- my $tmp = sprintf " %-10s %s
$defaulttxt\n", $display_name, "$type_te
xt";
+ my $tmp = sprintf " %-10s %s
%s\n", $display_name, "$type_text", "$defaultt
xt";
my $indend = " ";
$res .= Text::Wrap::wrap('', $indend, ($tmp));