Skip to content

Commit e8e3f54

Browse files
committed
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 11c1c2a commit e8e3f54

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ui/scripts/instances.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,9 +1738,14 @@
17381738
},
17391739
action: function(args) {
17401740
var rootVolume = {};
1741+
var data = {
1742+
virtualmachineid: args.context.instances[0].id,
1743+
listAll: true
1744+
}
17411745
$.ajax({
1742-
url: createURL("listVolumes&virtualmachineid=" + args.context.instances[0].id),
1746+
url: createURL("listVolumes"),
17431747
dataType: "json",
1748+
data: data,
17441749
async: false,
17451750
success: function(json) {
17461751
var volumes = json.listvolumesresponse.volume;
@@ -1752,7 +1757,7 @@
17521757
});
17531758
}
17541759
});
1755-
var data = {
1760+
data = {
17561761
'virtualmachineid': args.context.instances[0].id,
17571762
'migrateto[0].volume': rootVolume.id,
17581763
'migrateto[0].pool': args.data.storageId

0 commit comments

Comments
 (0)