> +                        if (nsg != null) {
> +                           uri = 
> api.getNetworkSecurityGroupApi(group).delete(id + "nsg");
> +                           jobDone = resourceDeleted.apply(uri);
> +                           if (jobDone) {
> +                              nsgDeleteStatus = true;
> +
> +                           }
> +                        }
> +                        else {
> +                           nsgDeleteStatus = true;
> +                        }
> +
> +                        return deploymentDeleteStatus && 
> storageAcctDeleteStatus && ipDeleteStatus && nsgDeleteStatus;
> +                     } else {
> +                        return false;
> +                     }
>                    } else {
>                       return false;

@nacx @andreaturli If you guys don't mind, let's get this PR done first. Then 
we will add this create with tag and cleanup by tag feature in a subsequent PR. 

As for adding a tag with the id of the VM, I recommend not because some of 
these resources are shared between nodes, for example vnet and subnet. 


---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/291/files/8a39037237f5cccc7d100bc58a9a82bdb89924b1#r68182085

Reply via email to