From 5120db410004da4cba0a86875251747e007ecce9 Mon Sep 17 00:00:00 2001 From: Stephan Duehr Date: Wed, 18 Dec 2019 17:08:02 +0100 Subject: [PATCH] oVirt-Plugin: Rearrange imports It is not possible to remove the line from BareosFdWrapper import * # noqa as suggested in PR #380, as python-fd.cc expects the functions to be provided by the Python plugin code. However, the functions are now implicitly imported by name to avoid using the *. --- core/src/plugins/filed/bareos-fd-ovirt.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/core/src/plugins/filed/bareos-fd-ovirt.py b/core/src/plugins/filed/bareos-fd-ovirt.py index 1d1b864c72c..12bcd9dc175 100644 --- a/core/src/plugins/filed/bareos-fd-ovirt.py +++ b/core/src/plugins/filed/bareos-fd-ovirt.py @@ -13,7 +13,24 @@ # functions call the corresponding # methods from your plugin class import BareosFdWrapper -from BareosFdWrapper import * # noqa +from BareosFdWrapper import ( + parse_plugin_definition, + handle_plugin_event, + start_backup_file, + end_backup_file, + start_restore_file, + end_restore_file, + restore_object_data, + plugin_io, + create_file, + set_file_attributes, + check_file, + get_acl, + set_acl, + get_xattr, + set_xattr, + handle_backup_file, +) # This module contains the used plugin class import BareosFdPluginOvirt