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:
Marcus Sorensen 2013-02-06 10:15:16 -07:00
parent dc7578c72c
commit ec6fdc7471
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ public class CreateFirewallRuleCmd extends BaseAsyncCreateCmd implements Firewal
@Override
public TrafficType getTrafficType() {
return null;
return FirewallRule.TrafficType.Ingress;
}
}