mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-15 18:12:35 +01:00
CLOUDSTACK-2681: Suppress failed to apply port forwarding rule error when rollback
This commit is contained in:
parent
a1437ae82e
commit
e3a3286758
@ -198,7 +198,11 @@ public class CreatePortForwardingRuleCmd extends BaseAsyncCreateCmd implements P
|
||||
_firewallService.revokeRelatedFirewallRule(getEntityId(), true);
|
||||
}
|
||||
|
||||
_rulesService.revokePortForwardingRule(getEntityId(), true);
|
||||
try {
|
||||
_rulesService.revokePortForwardingRule(getEntityId(), true);
|
||||
} catch (Exception ex){
|
||||
//Ignore e.g. failed to apply rules to device error
|
||||
}
|
||||
|
||||
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to apply port forwarding rule");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user