[node-patches] Change in ovirt-node[master]: plugins: Let ipmi/rhn plugins publish their features

hadong0720 at gmail.com hadong0720 at gmail.com
Fri Jun 20 08:02:35 UTC 2014


hadong has uploaded a new change for review.

Change subject: plugins: Let ipmi/rhn plugins publish their features
......................................................................

plugins: Let ipmi/rhn plugins publish their features

Change-Id: Ib609237050506dc7286e84feeee21645a16795b0
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1111504
Signed-off-by: hadong <hadong at redhat.com>
---
M src/ovirt/node/setup/ipmi/__init__.py
M src/ovirt/node/setup/rhn/__init__.py
2 files changed, 15 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/75/28975/1

diff --git a/src/ovirt/node/setup/ipmi/__init__.py b/src/ovirt/node/setup/ipmi/__init__.py
index 6a68089..16868b7 100644
--- a/src/ovirt/node/setup/ipmi/__init__.py
+++ b/src/ovirt/node/setup/ipmi/__init__.py
@@ -18,11 +18,12 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA  02110-1301, USA.  A copy of the GNU General Public License is
 # also available at http://www.gnu.org/copyleft/gpl.html.
+from ovirt.node.utils.expose import Feature, Owner
+import ipmi_page
 
 """
 IPMI Plugin
 """
-import ipmi_page
 
 
 #
@@ -30,3 +31,9 @@
 #
 def createPlugins(application):
     ipmi_page.Plugin(application)
+
+
+def createPluginFeatures(application):
+    application.register(Feature(owner=Owner(name=__package__),
+                                 name="ipmi",
+                                 description="Offers IPMI Status via IPMI"))
diff --git a/src/ovirt/node/setup/rhn/__init__.py b/src/ovirt/node/setup/rhn/__init__.py
index 5ec97f1..666bd8e 100644
--- a/src/ovirt/node/setup/rhn/__init__.py
+++ b/src/ovirt/node/setup/rhn/__init__.py
@@ -18,12 +18,18 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA  02110-1301, USA.  A copy of the GNU General Public License is
 # also available at http://www.gnu.org/copyleft/gpl.html.
+from ovirt.node.utils.expose import Feature, Owner
+import rhn_page
 
 """
 RHN Plugin
 """
-import rhn_page
 
 
 def createPlugins(application):
     rhn_page.Plugin(application)
+
+def createPluginFeatures(application):
+    application.register(Feature(owner=Owner(name=__package__),
+                                 name="RHN",
+                                 description="Offers RHN Registration via RHN"))


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib609237050506dc7286e84feeee21645a16795b0
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hadong <hadong0720 at gmail.com>



More information about the node-patches mailing list