Discussion:
[pve-devel] [PATCH firewall] macro: fix return verification failure
Dominik Csapak
2018-11-29 13:29:03 UTC
Permalink
macros are strings not integers

Signed-off-by: Dominik Csapak <***@proxmox.com>
---
src/PVE/API2/Firewall/Rules.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/API2/Firewall/Rules.pm b/src/PVE/API2/Firewall/Rules.pm
index b2a81a1..1670986 100644
--- a/src/PVE/API2/Firewall/Rules.pm
+++ b/src/PVE/API2/Firewall/Rules.pm
@@ -150,7 +150,7 @@ sub register_get_rule {
optional => 1,
},
macro => {
- type => 'integer',
+ type => 'string',
optional => 1,
},
pos => {
--
2.11.0
Thomas Lamprecht
2018-11-29 13:43:44 UTC
Permalink
Post by Dominik Csapak
macros are strings not integers
---
src/PVE/API2/Firewall/Rules.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/API2/Firewall/Rules.pm b/src/PVE/API2/Firewall/Rules.pm
index b2a81a1..1670986 100644
--- a/src/PVE/API2/Firewall/Rules.pm
+++ b/src/PVE/API2/Firewall/Rules.pm
@@ -150,7 +150,7 @@ sub register_get_rule {
optional => 1,
},
macro => {
- type => 'integer',
+ type => 'string',
optional => 1,
},
pos => {
applied, thanks!

Loading...