Sandro Bonazzola has uploaded a new change for review.

Change subject: packaging: setup: allow to disable iptables overriding
......................................................................

packaging: setup: allow to disable iptables overriding

When iptables automatic configuration is not enabled,
avoid to override iptables configuration when adding the host.

Change-Id: I8244440989f486b1006fbe05151cb1fc9aa1fa1d
Bug-Url: https://bugzilla.redhat.com/1080823
Signed-off-by: Sandro Bonazzola <sbona...@redhat.com>
---
M src/plugins/ovirt-hosted-engine-setup/engine/add_host.py
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-setup 
refs/changes/35/37535/1

diff --git a/src/plugins/ovirt-hosted-engine-setup/engine/add_host.py 
b/src/plugins/ovirt-hosted-engine-setup/engine/add_host.py
index 0ad258a..6033383 100644
--- a/src/plugins/ovirt-hosted-engine-setup/engine/add_host.py
+++ b/src/plugins/ovirt-hosted-engine-setup/engine/add_host.py
@@ -641,7 +641,9 @@
                             ohostedcons.NetworkEnv.SSHD_PORT
                         ],
                     ),
-                    override_iptables=True,
+                    override_iptables=self.environment[
+                        constants.NetEnv.IPTABLES_ENABLE
+                    ],
                 )
             )
         except ovirtsdk.infrastructure.errors.RequestError as e:


-- 
To view, visit http://gerrit.ovirt.org/37535
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8244440989f486b1006fbe05151cb1fc9aa1fa1d
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-hosted-engine-setup
Gerrit-Branch: master
Gerrit-Owner: Sandro Bonazzola <sbona...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to