Skip to content

Commit 9da94a2

Browse files
authored
fix other user migration (#31)
Fixes stopped VM migration of user VM belonging to user other than root admin https://shapeblue.atlassian.net/browse/KDDI-653
1 parent cb69599 commit 9da94a2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ui/scripts/instances.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -1632,9 +1632,14 @@
16321632
},
16331633
action: function(args) {
16341634
var rootVolume = {};
1635+
var data = {
1636+
virtualmachineid: args.context.instances[0].id,
1637+
listAll: true
1638+
}
16351639
$.ajax({
1636-
url: createURL("listVolumes&virtualmachineid=" + args.context.instances[0].id),
1640+
url: createURL("listVolumes"),
16371641
dataType: "json",
1642+
data: data,
16381643
async: false,
16391644
success: function(json) {
16401645
var volumes = json.listvolumesresponse.volume;
@@ -1646,7 +1651,7 @@
16461651
});
16471652
}
16481653
});
1649-
var data = {
1654+
data = {
16501655
'virtualmachineid': args.context.instances[0].id,
16511656
'migrateto[0].volume': rootVolume.id,
16521657
'migrateto[0].pool': args.data.storageId

0 commit comments

Comments
 (0)