commit | 856e6b5720497779007a14307797b4df0914f6e2 | [log] [tgz] |
---|---|---|
author | David K. Bainbridge <dbainbri@ciena.com> | Tue Jun 14 19:10:43 2016 -0700 |
committer | David K. Bainbridge <dbainbri@ciena.com> | Tue Jun 14 19:10:43 2016 -0700 |
tree | 77e0e86eaea7feb85d1a53fb59c1270f9f66d007 | |
parent | 888059ed098bb639b2861a2ff92d0368537ac3f0 [diff] |
only include non-empty IP addresses Change-Id: Id0fe43c2ba7c7af30982afb9add431e3a0369cfd
diff --git a/automation/node.go b/automation/node.go index a414820..9e045e6 100644 --- a/automation/node.go +++ b/automation/node.go
@@ -113,7 +113,9 @@ linkObj, _ := link.GetMap() ipObj, _ := linkObj["ip_address"] ip, _ := ipObj.GetString() - result = append(result, ip) + if ip != "" { + result = append(result, ip) + } } }