mirror of https://github.com/apache/cloudstack.git
Summary: Fix NPE when calling createFirewallRule
Detail: CreateFirewallRuleCmd.java was returning 'null' for getTrafficType(). Recently, getTrafficType started being used by createIngressFirewallRule. Changing getTrafficType() to return ingress per Jayapal Reddy. BUG-ID: CLOUDSTACK-1168 Bugfix-for: master,4.1 Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1360170916 -0700
This commit is contained in:
parent
dc7578c72c
commit
ec6fdc7471
|
|
@ -324,7 +324,7 @@ public class CreateFirewallRuleCmd extends BaseAsyncCreateCmd implements Firewal
|
|||
|
||||
@Override
|
||||
public TrafficType getTrafficType() {
|
||||
return null;
|
||||
return FirewallRule.TrafficType.Ingress;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue