diff --git a/ui/scripts/system.js b/ui/scripts/system.js index ad92b3c76a8..1313859a7ad 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -7873,7 +7873,7 @@ data: data, success: function(json) { var systemvmObjs = json.listsystemvmsresponse.systemvm; - if (systemvmObjs != null) { + if (systemvmObjs != undefined) { $.ajax({ url: createURL("listHosts&listAll=true"), success: function(json) { @@ -7889,15 +7889,13 @@ args.response.success({ data: systemvmObjs }); - }, - error: function(json) { - args.response.error(parseXMLHttpResponse(json)); } }); + } else { + args.response.success({ + data: [] + }); } - }, - error: function(json) { - args.response.error(parseXMLHttpResponse(json)); } }); },