]> git.proxmox.com Git - qemu-server.git/commitdiff
cloud-init: make parameter order consistent
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 12 Mar 2018 15:25:06 +0000 (16:25 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 14 Mar 2018 10:13:27 +0000 (11:13 +0100)
we have '$conf, $vmid' elsewhere for cloudinit, this was the only
function which had them in reverse

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/QemuServer/Cloudinit.pm

index 0e9241293e5b84d153237f4740dfad6450e94182..9a809c5b9bd237dd7e96d12db2bcc6b9641ea504 100644 (file)
@@ -12,7 +12,7 @@ use PVE::Storage;
 use PVE::QemuServer;
 
 sub commit_cloudinit_disk {
-    my ($vmid, $conf, $drive, $volname, $storeid, $files, $label) = @_;
+    my ($conf, $vmid, $drive, $volname, $storeid, $files, $label) = @_;
 
     my $path = "/run/pve/cloudinit/$vmid/";
     mkpath $path;
@@ -212,7 +212,7 @@ sub generate_configdrive2 {
        '/openstack/content/0000' => $network_data,
        '/openstack/latest/meta_data.json' => $meta_data
     };
-    commit_cloudinit_disk($vmid, $conf, $drive, $volname, $storeid, $files, 'config-2');
+    commit_cloudinit_disk($conf, $vmid, $drive, $volname, $storeid, $files, 'config-2');
 }
 
 sub nocloud_network_v2 {
@@ -377,7 +377,7 @@ sub generate_nocloud {
        '/network-config' => $network_data,
        '/meta-data' => $meta_data
     };
-    commit_cloudinit_disk($vmid, $conf, $drive, $volname, $storeid, $files, 'cidata');
+    commit_cloudinit_disk($conf, $vmid, $drive, $volname, $storeid, $files, 'cidata');
 }
 
 my $cloudinit_methods = {