[pve-devel] [PATCH manager 03/17] whitespace cleanup
Dominik Csapak
d.csapak at proxmox.com
Wed Jul 19 15:45:15 CEST 2017
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
PVE/API2.pm | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/PVE/API2.pm b/PVE/API2.pm
index f2663956..9aad03b1 100644
--- a/PVE/API2.pm
+++ b/PVE/API2.pm
@@ -19,32 +19,32 @@ use PVE::API2::AccessControl;
use PVE::API2::Storage::Config;
__PACKAGE__->register_method ({
- subclass => "PVE::API2::Cluster",
+ subclass => "PVE::API2::Cluster",
path => 'cluster',
});
__PACKAGE__->register_method ({
- subclass => "PVE::API2::Nodes",
+ subclass => "PVE::API2::Nodes",
path => 'nodes',
});
__PACKAGE__->register_method ({
- subclass => "PVE::API2::Storage::Config",
+ subclass => "PVE::API2::Storage::Config",
path => 'storage',
});
__PACKAGE__->register_method ({
- subclass => "PVE::API2::AccessControl",
+ subclass => "PVE::API2::AccessControl",
path => 'access',
});
__PACKAGE__->register_method ({
- subclass => "PVE::API2::Pool",
+ subclass => "PVE::API2::Pool",
path => 'pools',
});
__PACKAGE__->register_method ({
- name => 'index',
+ name => 'index',
path => '',
method => 'GET',
permissions => { user => 'all' },
@@ -65,7 +65,7 @@ __PACKAGE__->register_method ({
},
code => sub {
my ($resp, $param) = @_;
-
+
my $res = [ { subdir => 'version' } ];
my $ma = PVE::API2->method_attributes();
@@ -157,7 +157,7 @@ my $compute_api_permission = sub {
};
__PACKAGE__->register_method ({
- name => 'version',
+ name => 'version',
path => 'version',
method => 'GET',
permissions => { user => 'all' },
@@ -176,7 +176,7 @@ __PACKAGE__->register_method ({
},
code => sub {
my ($resp, $param) = @_;
-
+
my $res = PVE::Cluster::cfs_read_file('datacenter.cfg');
my $rpcenv = PVE::RPCEnvironment::get();
@@ -184,7 +184,7 @@ __PACKAGE__->register_method ({
foreach my $k (qw(version release repoid)) {
$res->{$k} = $vi->{$k};
}
-
+
# get api permissions
$res->{cap} = $compute_api_permission->($rpcenv);
--
2.11.0
More information about the pve-devel
mailing list