(data)
| 162 | }; |
| 163 | |
| 164 | var callback = function (data) { |
| 165 | console.log(data); |
| 166 | for (var i = 0; i < serverInfo.length; i++) { |
| 167 | var updateParams = { |
| 168 | //change the table name to match the above |
| 169 | TableName: 'TableName', |
| 170 | Item: { |
| 171 | Hostname: {'S': serverInfo[i].Hostname}, |
| 172 | Sitename: {'S': serverInfo[i].Sitename}, |
| 173 | Location: {'S': serverInfo[i].Location}, |
| 174 | IPv4Address: {'S': serverInfo[i].IPv4Address}, |
| 175 | IPv6Address: {'S': serverInfo[i].IPv6Address} |
| 176 | } |
| 177 | }; |
| 178 | putItem(updateParams, putItemCallback); |
| 179 | } |
| 180 | }; |
| 181 | |
| 182 | var putItemCallback = function (data) { |
| 183 | console.log(data) |
no test coverage detected