Alex Lourie has uploaded a new change for review. Change subject: packaging: setup: Fixed postgres.conf handling ......................................................................
packaging: setup: Fixed postgres.conf handling Change-Id: Ide10b82d678a2a579667fe695b69c372d418964b Bug-Url: https://bugzilla.redhat.com/1014031 Signed-off-by: Alex Lourie <alou...@redhat.com> --- M packaging/common_utils.py 1 file changed, 7 insertions(+), 9 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-dwh refs/changes/29/19729/1 diff --git a/packaging/common_utils.py b/packaging/common_utils.py index d804d5f..2bdfa2e 100755 --- a/packaging/common_utils.py +++ b/packaging/common_utils.py @@ -4,14 +4,12 @@ ''' import csv -import getpass import logging import os import pwd import grp import traceback import datetime -import time import re from StringIO import StringIO import subprocess @@ -648,16 +646,16 @@ if ( secured and not configured_ssl and - line.startswith('#ssl') + line.startswith('#ssl =') ): content.append("ssl = on") configured_ssl = True - if line.startswith('listen_addresses'): - if '*' in line: - break - else: - line = '#' + line + if ( + line.startswith('listen_addresses') and + '*' not in line + ): + line = '#' + line content.append(line) @@ -667,7 +665,7 @@ def createCertificate(): - cmds =( + cmds = ( [ 'openssl', 'x509', -- To view, visit http://gerrit.ovirt.org/19729 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ide10b82d678a2a579667fe695b69c372d418964b Gerrit-PatchSet: 1 Gerrit-Project: ovirt-dwh Gerrit-Branch: master Gerrit-Owner: Alex Lourie <alou...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches