Alon Bar-Lev has uploaded a new change for review. Change subject: packaging: setup: system/exportfs: pep8 fixups ......................................................................
packaging: setup: system/exportfs: pep8 fixups Change-Id: Ia7130f80b1a03ab9e76a7ac66842af9969d027fe Signed-off-by: Alon Bar-Lev <alo...@redhat.com> --- M packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/system/exportfs.py 1 file changed, 8 insertions(+), 6 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/13/22913/1 diff --git a/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/system/exportfs.py b/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/system/exportfs.py index b3e0b68..b129e1b 100644 --- a/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/system/exportfs.py +++ b/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/system/exportfs.py @@ -148,11 +148,13 @@ ) if self._conf == osetupcons.FileLocations.OVIRT_NFS_EXPORT_FILE: if exports_index is not None: - # This probably means that in a previous setup we added the path - # to /etc/exports instead of creating our own file in - # /etc/exports.d as we do now. Delete the line from /etc/exports. - # The transaction below does not pass modifiedList nor do we call - # addChanges - we do not revert this fix on cleanup. + # This probably means that in a previous setup we added + # the path to /etc/exports instead of creating our + # own file in /etc/exports.d as we do now. Delete the + # line from /etc/exports. + # The transaction below does not pass modifiedList + # nor do we call addChanges - we do not revert this + # fix on cleanup. del exports_content[exports_index] self.environment[otopicons.CoreEnv.MAIN_TRANSACTION].append( filetransaction.FileTransaction( @@ -166,7 +168,7 @@ new_line, ] else: - changes = { 'added': new_line } + changes = {'added': new_line} if exports_index is not None: old_line = exports_content.pop(exports_index) changes['removed'] = old_line -- To view, visit http://gerrit.ovirt.org/22913 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia7130f80b1a03ab9e76a7ac66842af9969d027fe Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches