iss #45 - Some additional checks for getGroupByName(), getHostByName() and getAppByName() methods.
This commit is contained in:
@@ -339,7 +339,7 @@ function (angular, _) {
|
||||
var params = {
|
||||
output: ['name']
|
||||
};
|
||||
if (group[0] !== '*') {
|
||||
if (group && group[0] !== '*') {
|
||||
params.filter = {
|
||||
name: group
|
||||
};
|
||||
@@ -374,7 +374,7 @@ function (angular, _) {
|
||||
var params = {
|
||||
output: ['host', 'name']
|
||||
};
|
||||
if (hostnames[0] !== '*') {
|
||||
if (hostnames && hostnames[0] !== '*') {
|
||||
params.filter = {
|
||||
name: hostnames
|
||||
};
|
||||
@@ -392,7 +392,7 @@ function (angular, _) {
|
||||
var params = {
|
||||
output: ['name']
|
||||
};
|
||||
if (application[0] !== '*') {
|
||||
if (application && application[0] !== '*') {
|
||||
params.filter = {
|
||||
name: application
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user