Dan Kenigsberg has uploaded a new change for review. Change subject: make pep8 happy with config.py.in ......................................................................
make pep8 happy with config.py.in Change-Id: Idc172808b58512d9e154e1445d90c4f3019d82c0 Signed-off-by: Dan Kenigsberg <[email protected]> --- M Makefile.am M vdsm/config.py.in 2 files changed, 6 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/81/7781/1 diff --git a/Makefile.am b/Makefile.am index 40d7658..6d38b73 100644 --- a/Makefile.am +++ b/Makefile.am @@ -47,6 +47,7 @@ vdsm/blkid.py \ vdsm/caps.py \ vdsm/clientIF.py \ + vdsm/config.py.in \ vdsm/constants.py.in \ vdsm/debugPluginClient.py \ vdsm/define.py \ diff --git a/vdsm/config.py.in b/vdsm/config.py.in index 56cd28e..7e2a94e 100644 --- a/vdsm/config.py.in +++ b/vdsm/config.py.in @@ -228,7 +228,7 @@ ('iscsi_default_ifaces', 'default', 'Comma seperated ifaces to connect with. ' - 'i.e. iser,default' ), + 'i.e. iser,default'), ('use_volume_leases', 'false', 'Whether to use the volume leases or not.'), @@ -252,6 +252,7 @@ ]), ] + def __prepare_config(): global config @@ -259,6 +260,7 @@ config.add_section(section) for key, value, comment in keylist: config.set(section, key, value) + def print_config(): twp = textwrap.TextWrapper(initial_indent='# ', subsequent_indent='# ') @@ -270,7 +272,8 @@ print "[%s]\n" % section for key, value, comment in keylist: - if comment: print twp.fill(comment) + if comment: + print twp.fill(comment) print twp.fill("%s = %s" % (key, value)) print -- To view, visit http://gerrit.ovirt.org/7781 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Idc172808b58512d9e154e1445d90c4f3019d82c0 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Dan Kenigsberg <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
