Skip to content

Commit

Permalink
oVirt-Plugin: Rearrange imports
Browse files Browse the repository at this point in the history
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 *.
  • Loading branch information
sduehr committed Dec 18, 2019
1 parent 5106e87 commit 5120db4
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion core/src/plugins/filed/bareos-fd-ovirt.py
Expand Up @@ -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
Expand Down

0 comments on commit 5120db4

Please sign in to comment.