fix(cli): Remove duplication of target host sources (#1805)
fix(cli): Remove duplication of target host sources
This commit is contained in:
1 parent
58aca600a4
commit
3afbfbf8c2
1 file changed
+3
-3
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user