projects
/
pve-firewall.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5927497
)
compile: use verbose output when started from CLI
author
Dietmar Maurer
<dietmar@proxmox.com>
Tue, 25 Feb 2014 10:42:32 +0000
(11:42 +0100)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Tue, 25 Feb 2014 10:42:32 +0000
(11:42 +0100)
pvefw
patch
|
blob
|
blame
|
history
diff --git
a/pvefw
b/pvefw
index 1c346b555e7e4e6019452593844508b0145cfefd..30be559f1feb309e541b9191a0b79311f17342ce 100755
(executable)
--- a/
pvefw
+++ b/
pvefw
@@
-41,7
+41,6
@@
__PACKAGE__->register_method ({
description => "Verbose output.",
type => "boolean",
optional => 1,
- default => 0,
},
},
},
@@
-50,6
+49,11
@@
__PACKAGE__->register_method ({
code => sub {
my ($param) = @_;
+ my $rpcenv = PVE::RPCEnvironment::get();
+
+ $param->{verbose} = 1
+ if !defined($param->{verbose}) && ($rpcenv->{type} eq 'cli');
+
my $code = sub {
my $ruleset = PVE::Firewall::compile();
PVE::Firewall::get_ruleset_status($ruleset, 1) if $param->{verbose};