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