]> git.proxmox.com Git - pve-storage.git/commitdiff
esxi: guest types: use quotes for all hash-map keys
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 9 Apr 2024 11:18:50 +0000 (13:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 10 Apr 2024 08:20:39 +0000 (10:20 +0200)
A small coding style patch to make the list of guest-types mapping to
Windows easier to read.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Storage/ESXiPlugin.pm

index e5082ea8f39439bcd8b1d68aa74738e489f5b838..df00b73e5dee2e2c4f21b48def8dfe9585bb4a26 100644 (file)
@@ -874,33 +874,33 @@ sub is_windows {
 }
 
 my %guest_types_windows = (
-    dos                     => 'other',
-    winNetBusiness          => 'w2k3',
-    windows9                => 'win10',
+    'dos'                   => 'other',
+    'winNetBusiness'        => 'w2k3',
+    'windows9'              => 'win10',
     'windows9-64'           => 'win10',
-    windows9srv             => 'win10',
+    'windows9srv'           => 'win10',
     'windows9srv-64'        => 'win10',
     'windows11-64'          => 'win11',
     'windows12-64'          => 'win11', # FIXME / win12?
-    win2000AdvServ          => 'w2k',
-    win2000Pro              => 'w2k',
-    win2000Serv             => 'w2k',
-    win31                   => 'other',
-    windows7                => 'win7',
+    'win2000AdvServ'        => 'w2k',
+    'win2000Pro'            => 'w2k',
+    'win2000Serv'           => 'w2k',
+    'win31'                 => 'other',
+    'windows7'              => 'win7',
     'windows7-64'           => 'win7',
-    windows8                => 'win8',
+    'windows8'              => 'win8',
     'windows8-64'           => 'win8',
-    win95                   => 'other',
-    win98                   => 'other',
-    winNT                   => 'wxp', # ?
-    winNetEnterprise        => 'w2k3',
+    'win95'                 => 'other',
+    'win98'                 => 'other',
+    'winNT'                 => 'wxp', # ?
+    'winNetEnterprise'      => 'w2k3',
     'winNetEnterprise-64'   => 'w2k3',
-    winNetDatacenter        => 'w2k3',
+    'winNetDatacenter'      => 'w2k3',
     'winNetDatacenter-64'   => 'w2k3',
-    winNetStandard          => 'w2k3',
+    'winNetStandard'        => 'w2k3',
     'winNetStandard-64'     => 'w2k3',
-    winNetWeb               => 'w2k3',
-    winLonghorn             => 'w2k8',
+    'winNetWeb'             => 'w2k3',
+    'winLonghorn'           => 'w2k8',
     'winLonghorn-64'        => 'w2k8',
     'windows7Server-64'     => 'w2k8',
     'windows8Server-64'     => 'win8',
@@ -908,9 +908,9 @@ my %guest_types_windows = (
     'windows2019srv-64'     => 'win10',
     'windows2019srvNext-64' => 'win11',
     'windows2022srvNext-64' => 'win11', # FIXME / win12?
-    winVista                => 'wvista',
+    'winVista'              => 'wvista',
     'winVista-64'           => 'wvista',
-    winXPPro                => 'wxp',
+    'winXPPro'              => 'wxp',
     'winXPPro-64'           => 'wxp',
 );