Alon Bar-Lev has uploaded a new change for review. Change subject: packaging: setup: add release preview warning ......................................................................
packaging: setup: add release preview warning Change-Id: Iece1719eabcfc3b0956ee553c727cab75c1f26b5 Signed-off-by: Alon Bar-Lev <[email protected]> --- A packaging/setup/plugins/ovirt-engine-setup/releasepreview/__init__.py A packaging/setup/plugins/ovirt-engine-setup/releasepreview/misc.py 2 files changed, 88 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/77/14677/1 diff --git a/packaging/setup/plugins/ovirt-engine-setup/releasepreview/__init__.py b/packaging/setup/plugins/ovirt-engine-setup/releasepreview/__init__.py new file mode 100644 index 0000000..d505450 --- /dev/null +++ b/packaging/setup/plugins/ovirt-engine-setup/releasepreview/__init__.py @@ -0,0 +1,33 @@ +# +# ovirt-engine-setup -- ovirt engine setup +# Copyright (C) 2013 Red Hat, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + +"""ovirt-host-setup release preview plugin.""" + + +from otopi import util + + +from . import misc + + [email protected] +def createPlugins(context): + misc.Plugin(context=context) + + +# vim: expandtab tabstop=4 shiftwidth=4 diff --git a/packaging/setup/plugins/ovirt-engine-setup/releasepreview/misc.py b/packaging/setup/plugins/ovirt-engine-setup/releasepreview/misc.py new file mode 100644 index 0000000..9aae1cb --- /dev/null +++ b/packaging/setup/plugins/ovirt-engine-setup/releasepreview/misc.py @@ -0,0 +1,55 @@ +# +# ovirt-engine-setup -- ovirt engine setup +# Copyright (C) 2013 Red Hat, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + +"""Misc plugin.""" + + +import gettext +_ = lambda m: gettext.dgettext(message=m, domain='ovirt-engine-setup') + + +from otopi import util +from otopi import plugin + + +from ovirt_engine_setup import constants as osetupcons + + [email protected] +class Plugin(plugin.PluginBase): + """Misc plugin.""" + + def __init__(self, context): + super(Plugin, self).__init__(context=context) + + @plugin.event( + stage=plugin.Stages.STAGE_INIT, + ) + def _init(self): + self.logger.warning( + _( + 'engine-setup-2 is a technical preview, and yet to ' + 'include all functionality that exists in legacy ' + 'engine-setup. ' + 'Specifically, engine-setup-2 does not support upgrade ' + 'from previous installations.' + ) + ) + + +# vim: expandtab tabstop=4 shiftwidth=4 -- To view, visit http://gerrit.ovirt.org/14677 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iece1719eabcfc3b0956ee553c727cab75c1f26b5 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Alon Bar-Lev <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
