> + if (jobDone) { > + // Delete storage account > + > api.getStorageAccountApi(getGroupId()).delete(storageAccountName); > + > + // Delete NIC > + uri = api.getNetworkInterfaceCardApi(getGroupId()).delete(id + > "nic"); > + if (uri != null){ > + jobDone = Predicates2.retry(new Predicate<URI>() { > + @Override public boolean apply(URI uri) { > + return ParseJobStatus.JobStatus.DONE == > api.getJobApi().jobStatus(uri) > + || ParseJobStatus.JobStatus.NO_CONTENT == > api.getJobApi().jobStatus(uri); > + } > + }, 60 * 10 * 1000 /* 5 minute timeout */).apply(uri); > + if (jobDone) { > + // Delete public ip > + api.getPublicIPAddressApi(getGroupId()).delete(id + > "publicip");
Does it make sense to do a "best effort delete" and try to delete the deployment and network even if this call fails? --- 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/267/files/bae5d6dfcdb26e31057db4551c5996836666a31b#r63965750