You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2012/05/23 12:42:02 UTC
[2/4] git commit: don't display FW rules for Deny with FGCP (until DC
API has a way to distinguish Accept/Deny rules)
don't display FW rules for Deny with FGCP (until DC API has a way to distinguish Accept/Deny rules)
Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/0e5ddb5f
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/0e5ddb5f
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/0e5ddb5f
Branch: refs/heads/master
Commit: 0e5ddb5fc8caa39f4a3b6dc238d951efe460b906
Parents: 0393c27
Author: Dies Koper <di...@fast.au.fujitsu.com>
Authored: Sun May 20 12:46:13 2012 +1000
Committer: Michal fojtik <mf...@redhat.com>
Committed: Wed May 23 12:37:14 2012 +0200
----------------------------------------------------------------------
server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/0e5ddb5f/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb b/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
index 64f77b7..2248039 100644
--- a/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
+++ b/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
@@ -880,7 +880,7 @@ eofwpxml
:port_to => policy['dstPort'] ? policy['dstPort'][0] : nil, # not set for e.g. ICMP
:direction => ingress,
:sources => sources
- }) unless policy['id'][0] == '50000' # exclude special case
+ }) unless policy['action'][0] == 'Deny' or policy['id'][0] == '50000' # exclude special case
end
end