def apply(self, name, datastore, ds_version, data_file, admin_module): if not admin_module: raise exception.ModuleInvalid( reason='Module not created with admin options') pkg_cmd, install_opts, uninstall_opts = ( operating_system.get_package_command()) if pkg_cmd: self._run_pkg_cmd(pkg_cmd, install_opts, data_file)
def remove(self, name, datastore, ds_version, datafile): pkg_cmd, install_opts, uninstall_opts = ( operating_system.get_package_command()) if pkg_cmd: self._run_pkg_cmd(pkg_cmd, uninstall_opts, self.message_args['pkg_name'])
def remove(self, name, datastore, ds_version, datafile): pkg_cmd, install_opts, uninstall_opts = ( operating_system.get_package_command()) if pkg_cmd: self._run_pkg_cmd( pkg_cmd, uninstall_opts, self.message_args['pkg_name'])