With the introduction of VM.Config.Cloudinit we can set the user,
password and an SSH key without VM.Config.Network permission and instead
use VM.Config.Cloudinit.

Signed-off-by: Mira Limbeck <m.limb...@proxmox.com>
---
 www/manager6/qemu/CloudInit.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/manager6/qemu/CloudInit.js b/www/manager6/qemu/CloudInit.js
index cbb4af9d..efcbb668 100644
--- a/www/manager6/qemu/CloudInit.js
+++ b/www/manager6/qemu/CloudInit.js
@@ -200,7 +200,7 @@ Ext.define('PVE.qemu.CloudInit', {
                iconCls: 'fa fa-user',
                never_delete: true,
                defaultValue: '',
-               editor: caps.vms['VM.Config.Options'] ? {
+               editor: caps.vms['VM.Config.Cloudinit'] ? {
                    xtype: 'proxmoxWindowEdit',
                    subject: gettext('User'),
                    items: [
@@ -221,7 +221,7 @@ Ext.define('PVE.qemu.CloudInit', {
                header: gettext('Password'),
                iconCls: 'fa fa-unlock',
                defaultValue: '',
-               editor: caps.vms['VM.Config.Options'] ? {
+               editor: caps.vms['VM.Config.Cloudinit'] ? {
                    xtype: 'proxmoxWindowEdit',
                    subject: gettext('Password'),
                    items: [
@@ -256,7 +256,7 @@ Ext.define('PVE.qemu.CloudInit', {
            sshkeys: {
                header: gettext('SSH public key'),
                iconCls: 'fa fa-key',
-               editor: caps.vms['VM.Config.Network'] ? 'PVE.qemu.SSHKeyEdit' : 
undefined,
+               editor: caps.vms['VM.Config.Cloudinit'] ? 'PVE.qemu.SSHKeyEdit' 
: undefined,
                never_delete: true,
                renderer: function(value) {
                    value = decodeURIComponent(value);
-- 
2.20.1


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to