fix(cli): Remove duplication of target host sources (#1805)

fix(cli): Remove duplication of target host sources
This commit is contained in:
A-440Hz authored and GitHub committed 2021-12-17 19:11:28 -08:00
1 parent 58aca600a4
commit 3afbfbf8c2
1 file changed
+3 -3
+3 -3
View File
@@ -676,7 +676,8 @@ func printItemTable(result api.GenericResult) string {
maxLength := base.MaxAttributesLength(nonAttributeMap, item.Attributes, keySubstMap)
var hostSourceMaps []map[string]interface{}
if len(item.HostSources) > 0 {
switch {
case len(item.HostSources) > 0:
for _, set := range item.HostSources {
m := map[string]interface{}{
"ID": set.Id,
@@ -687,8 +688,7 @@ func printItemTable(result api.GenericResult) string {
if l := len("Host Catalog ID"); l > maxLength {
maxLength = l
}
}
if len(item.HostSets) > 0 {
case len(item.HostSets) > 0:
for _, set := range item.HostSets {
m := map[string]interface{}{
"ID": set.Id,