This is an automated email from the ASF dual-hosted git repository.

sureshanaparti pushed a commit to branch backupservice-userdatadetails
in repository https://gitbox.apache.org/repos/asf/cloudstack-go.git

commit f19af74c62d8de92d134619122cc7c30152d89f1
Author: Suresh Kumar Anaparti <[email protected]>
AuthorDate: Fri Nov 28 17:55:04 2025 +0530

    Fix userdatadetails in BackupService
---
 cloudstack/BackupService.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/cloudstack/BackupService.go b/cloudstack/BackupService.go
index 1a00485..92033d8 100644
--- a/cloudstack/BackupService.go
+++ b/cloudstack/BackupService.go
@@ -922,8 +922,7 @@ func (p *CreateVMFromBackupParams) toURLValues() url.Values 
{
        if v, found := p.p["userdatadetails"]; found {
                m := v.(map[string]string)
                for i, k := range getSortedKeysFromMap(m) {
-                       u.Set(fmt.Sprintf("userdatadetails[%d].key", i), k)
-                       u.Set(fmt.Sprintf("userdatadetails[%d].value", i), m[k])
+                       u.Set(fmt.Sprintf("userdatadetails[%d].%s", i, k), m[k])
                }
        }
        if v, found := p.p["userdataid"]; found {

Reply via email to