bug #3138: Role VMs fails if the role is in pending

(cherry picked from commit 338a09104a)
This commit is contained in:
Daniel Molina committed 2014-11-12 12:49:43 +01:00
1 parent e4d34aa849
commit b6ae000ff5
1 file changed
+1 -1
@@ -4559,7 +4559,7 @@ function setup_info_flow(context) {
var role = $(this).closest(".provision_role_ul").data('role');
var vms = []
if (role.nodes.length > 0) {
if (role.nodes && role.nodes.length > 0) {
$.each(role.nodes, function(index, node){
vms.push(node.vm_info);
})