iwasakims commented on code in PR #1026:
URL: https://github.com/apache/bigtop/pull/1026#discussion_r980147196


##########
provisioner/docker/docker-hadoop.sh:
##########
@@ -211,10 +211,16 @@ destroy() {
     else
         get_nodes
         docker exec ${NODES[0]} bash -c "umount /etc/hosts; rm -f /etc/hosts"
+        NETWORK_ID=`docker network ls | grep ${PROVISION_ID}_default`

Review Comment:
   How about using built-in `--filter` option instead of grep? @yamasakisua 
   
   ```
   $ docker network ls --quiet --filter name=20220926_134846_r4742_default
   f4741fc073a1
   ```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to