all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pdm-devel] [PATCH datacenter-manager] ui: remote migrate: lxc: add missing 'target-vmid' property
@ 2025-01-07 11:29 Dominik Csapak
  2025-01-07 12:13 ` Fabian Grünbichler
  2025-01-08 12:05 ` [pdm-devel] applied: " Thomas Lamprecht
  0 siblings, 2 replies; 3+ messages in thread
From: Dominik Csapak @ 2025-01-07 11:29 UTC (permalink / raw)
  To: pdm-devel

while we added that for vms already, it was missing for containers

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 ui/src/widget/migrate_window.rs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ui/src/widget/migrate_window.rs b/ui/src/widget/migrate_window.rs
index 1649296..c87cf9a 100644
--- a/ui/src/widget/migrate_window.rs
+++ b/ui/src/widget/migrate_window.rs
@@ -183,6 +183,10 @@ impl PdmMigrateWindow {
                         .delete_source(value["delete-source"].as_bool().unwrap_or_default())
                         .restart(true, None);
 
+                    if let Some(Value::Number(vmid)) = value.get("target-vmid") {
+                        migrate_opts = migrate_opts.target_vmid(vmid.as_u64().unwrap() as u32);
+                    }
+
                     if form_ctx.read().get_field_checked("detailed-mode") {
                         match value.get("detail-map") {
                             Some(Value::Array(list)) => {
-- 
2.39.5



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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [pdm-devel] [PATCH datacenter-manager] ui: remote migrate: lxc: add missing 'target-vmid' property
  2025-01-07 11:29 [pdm-devel] [PATCH datacenter-manager] ui: remote migrate: lxc: add missing 'target-vmid' property Dominik Csapak
@ 2025-01-07 12:13 ` Fabian Grünbichler
  2025-01-08 12:05 ` [pdm-devel] applied: " Thomas Lamprecht
  1 sibling, 0 replies; 3+ messages in thread
From: Fabian Grünbichler @ 2025-01-07 12:13 UTC (permalink / raw)
  To: Proxmox Datacenter Manager development discussion, Dominik Csapak

this is https://bugzilla.proxmox.com/show_bug.cgi?id=6016

> Dominik Csapak <d.csapak@proxmox.com> hat am 07.01.2025 12:29 CET geschrieben:
> 
>  
> while we added that for vms already, it was missing for containers
> 
> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
> ---
>  ui/src/widget/migrate_window.rs | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/ui/src/widget/migrate_window.rs b/ui/src/widget/migrate_window.rs
> index 1649296..c87cf9a 100644
> --- a/ui/src/widget/migrate_window.rs
> +++ b/ui/src/widget/migrate_window.rs
> @@ -183,6 +183,10 @@ impl PdmMigrateWindow {
>                          .delete_source(value["delete-source"].as_bool().unwrap_or_default())
>                          .restart(true, None);
>  
> +                    if let Some(Value::Number(vmid)) = value.get("target-vmid") {
> +                        migrate_opts = migrate_opts.target_vmid(vmid.as_u64().unwrap() as u32);
> +                    }
> +
>                      if form_ctx.read().get_field_checked("detailed-mode") {
>                          match value.get("detail-map") {
>                              Some(Value::Array(list)) => {
> -- 
> 2.39.5
> 
> 
> 
> _______________________________________________
> pdm-devel mailing list
> pdm-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [pdm-devel] applied: [PATCH datacenter-manager] ui: remote migrate: lxc: add missing 'target-vmid' property
  2025-01-07 11:29 [pdm-devel] [PATCH datacenter-manager] ui: remote migrate: lxc: add missing 'target-vmid' property Dominik Csapak
  2025-01-07 12:13 ` Fabian Grünbichler
@ 2025-01-08 12:05 ` Thomas Lamprecht
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Lamprecht @ 2025-01-08 12:05 UTC (permalink / raw)
  To: Proxmox Datacenter Manager development discussion, Dominik Csapak

On 07/01/2025 12:29, Dominik Csapak wrote:
> while we added that for vms already, it was missing for containers
> 
> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
> ---
>  ui/src/widget/migrate_window.rs | 4 ++++
>  1 file changed, 4 insertions(+)
> 
>

applied, with bug # added to commit message, thanks!


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-01-08 12:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-07 11:29 [pdm-devel] [PATCH datacenter-manager] ui: remote migrate: lxc: add missing 'target-vmid' property Dominik Csapak
2025-01-07 12:13 ` Fabian Grünbichler
2025-01-08 12:05 ` [pdm-devel] applied: " Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal