]> git.proxmox.com Git - pve-storage.git/commitdiff
code cleanup
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Oct 2020 16:06:07 +0000 (18:06 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Oct 2020 16:06:07 +0000 (18:06 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Disks.pm
PVE/Diskmanage.pm

index 89ed57d02ffba6b73db24d78343ca1edf3355a1a..807e9b2dc73292331780caeab46d9f3d41dd844f 100644 (file)
@@ -3,18 +3,18 @@ package PVE::API2::Disks;
 use strict;
 use warnings;
 
-use PVE::SafeSyslog;
-use PVE::Diskmanage;
 use HTTP::Status qw(:constants);
+
+use PVE::Diskmanage;
 use PVE::JSONSchema qw(get_standard_option);
+use PVE::SafeSyslog;
 
+use PVE::API2::Disks::Directory;
 use PVE::API2::Disks::LVM;
 use PVE::API2::Disks::LVMThin;
-use PVE::API2::Disks::Directory;
 use PVE::API2::Disks::ZFS;
 
 use PVE::RESTHandler;
-
 use base qw(PVE::RESTHandler);
 
 __PACKAGE__->register_method ({
@@ -69,7 +69,7 @@ __PACKAGE__->register_method ({
            { name => 'lvmthin' },
            { name => 'directory' },
            { name => 'zfs' },
-           ];
+       ];
 
        return $result;
     }});
index 267da081fc51c350cf01b93ae163a51dbd0e7d2c..0339177681f972f9fe75d6ee46315f90d6e57c8d 100644 (file)
@@ -2,6 +2,7 @@ package PVE::Diskmanage;
 
 use strict;
 use warnings;
+
 use PVE::ProcFSTools;
 use Data::Dumper;
 use Cwd qw(abs_path);
@@ -108,7 +109,6 @@ sub get_smart_data {
            if (defined($type) && $type eq 'ata' && $line =~ m/^([ \d]{2}\d)\s+(\S+)\s+(\S{6})\s+(\d+)\s+(\d+)\s+(\S+)\s+(\S+)\s+(.*)$/) {
                my $entry = {};
 
-
                $entry->{name} = $2 if defined $2;
                $entry->{flags} = $3 if defined $3;
                # the +0 makes a number out of the strings