Yedidyah Bar David has uploaded a new change for review.

Change subject: packaging: setup: move db creds questions to engine plugin
......................................................................

packaging: setup: move db creds questions to engine plugin

Before this change, db creds were always asked about. Move that to
engine so that they are asked if engine is setup.

Other components that need engine db creds should ask for them
with getCredentials.

Change-Id: I4bba7ffedd847eb84661bfb4a08711f74eda8a99
Signed-off-by: Yedidyah Bar David <d...@redhat.com>
---
D packaging/setup/plugins/ovirt-engine-setup/ovirt-engine-common/db/__init__.py
M packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/db/__init__.py
R packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/db/connection.py
3 files changed, 3 insertions(+), 34 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/16/28316/1

diff --git 
a/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine-common/db/__init__.py 
b/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine-common/db/__init__.py
deleted file mode 100644
index 53ea671..0000000
--- 
a/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine-common/db/__init__.py
+++ /dev/null
@@ -1,33 +0,0 @@
-#
-# 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 datebase plugin."""
-
-
-from otopi import util
-
-
-from . import connection
-
-
-@util.export
-def createPlugins(context):
-    connection.Plugin(context=context)
-
-
-# vim: expandtab tabstop=4 shiftwidth=4
diff --git 
a/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/db/__init__.py 
b/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/db/__init__.py
index 03e4486..bc230d1 100644
--- a/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/db/__init__.py
+++ b/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/db/__init__.py
@@ -1,6 +1,6 @@
 #
 # ovirt-engine-setup -- ovirt engine setup
-# Copyright (C) 2013 Red Hat, Inc.
+# Copyright (C) 2013-2014 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.
@@ -22,11 +22,13 @@
 from otopi import util
 
 
+from . import connection
 from . import schema
 
 
 @util.export
 def createPlugins(context):
+    connection.Plugin(context=context)
     schema.Plugin(context=context)
 
 
diff --git 
a/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine-common/db/connection.py
 b/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/db/connection.py
similarity index 100%
rename from 
packaging/setup/plugins/ovirt-engine-setup/ovirt-engine-common/db/connection.py
rename to 
packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/db/connection.py


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4bba7ffedd847eb84661bfb4a08711f74eda8a99
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yedidyah Bar David <d...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to