Skip to content
Browse files

Stop linking non-existent command plugins.

  • Loading branch information...
1 parent 2588fee commit 6772cf78ef4817eea60c56e272917fe900d2abdd @cluther cluther committed Apr 11, 2013
Showing with 1 addition and 34 deletions.
  1. +0 −33 ZenPacks/zenoss/oVirt/__init__.py
  2. +1 −1 setup.py
View
33 ZenPacks/zenoss/oVirt/__init__.py
@@ -82,36 +82,3 @@ class ZenPack(ZenPackBase):
('zOVirtPassword', '', 'password'),
('zOVirtDomain', 'internal', 'string'),
]
-
- # Placeholder for future plugin installation
- _plugins = (
- 'poll_ovirt.py',
- 'poll_ovirtcounts.py',
- )
-
- def install(self, app):
- super(ZenPack, self).install(app)
- self.symlink_plugins()
-
- def remove(self, app, leaveObjects=False):
- if not leaveObjects:
- self.remove_plugin_symlinks()
-
- super(ZenPack, self).remove(app, leaveObjects=leaveObjects)
-
- def symlink_plugins(self):
- libexec = os.path.join(os.environ.get('ZENHOME'), 'libexec')
- if not os.path.isdir(libexec):
- # Stack installs might not have a $ZENHOME/libexec directory.
- os.mkdir(libexec)
-
- for plugin in self._plugins:
- LOG.info('Linking %s plugin into $ZENHOME/libexec/', plugin)
- plugin_path = zenPath('libexec', plugin)
- os.system('ln -sf "%s" "%s"' % (self.path(plugin), plugin_path))
- os.system('chmod 0755 %s' % plugin_path)
-
- def remove_plugin_symlinks(self):
- for plugin in self._plugins:
- LOG.info('Removing %s link from $ZENHOME/libexec/', plugin)
- os.system('rm -f "%s"' % zenPath('libexec', plugin))
View
2 setup.py
@@ -3,7 +3,7 @@
# or saved. Do not modify them directly here.
# NB: PACKAGES is deprecated
NAME = "ZenPacks.zenoss.oVirt"
-VERSION = "1.1.5"
+VERSION = "1.2.0"
AUTHOR = "Zenoss Labs <labs@zenoss.com>"
LICENSE = "GPLv2"
NAMESPACE_PACKAGES = ['ZenPacks', 'ZenPacks.zenoss']

0 comments on commit 6772cf7

Please sign in to comment.
Something went wrong with that request. Please try again.