trevorflanagan commented on this pull request.
> + this.state = state;
+ }
+
+ @Override
+ public boolean apply(String networkDomainId) {
+ checkNotNull(networkDomainId, "networkDomainId");
+ logger.trace("looking for state on network domain %s", networkDomainId);
+ final NetworkDomain networkDomain =
networkApi.getNetworkDomain(networkDomainId);
+
+ if (networkDomain == null && state == State.DELETED) {
+ return true;
+ }
+
+ if (networkDomain.state().isFailed()) {
+ throw new IllegalStateException(
+ MessageFormat.format("Network Domain {0} is in FAILED state",
networkDomain.id()));
Thanks @nacx this makes sense. I will remove the runtime exception.
--
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/389#discussion_r123703992