[pve-devel] [RFC manager] change permissions for non-network cloudinit settings
Mira Limbeck
m.limbeck at proxmox.com
Wed Jun 3 15:58:25 CEST 2020
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.limbeck at 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
More information about the pve-devel
mailing list