diff options
author | Joerg Steffens <joerg.steffens@bareos.com> | 2021-12-20 19:28:50 +0300 |
---|---|---|
committer | Joerg Steffens <joerg.steffens@bareos.com> | 2022-04-06 15:33:24 +0300 |
commit | 61c4405d3e397481b25221544bb01cd121929cfa (patch) | |
tree | 193078fc68ed0f1f85c5237c1165667ff0145a67 /contrib | |
parent | 177dcced7abe10a8f73123546cc2e8123fd1e440 (diff) |
contrib: renamed mysql-python to bareos_mysql_dump
Paths containing "-" are not allowed, therefore renamed to bareos_mysql_dump.
Also renamed bareos-fd-mysql.py to bareos_mysql_dump/__init__.py
so that the configuration looks cleaner.
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/fd-plugins/bareos_mysql_dump/BareosFdMySQLclass.py (renamed from contrib/fd-plugins/mysql-python/BareosFdMySQLclass.py) | 0 | ||||
-rw-r--r-- | contrib/fd-plugins/bareos_mysql_dump/README.md (renamed from contrib/fd-plugins/mysql-python/README.md) | 0 | ||||
-rw-r--r-- | contrib/fd-plugins/bareos_mysql_dump/__init__.py (renamed from contrib/fd-plugins/mysql-python/bareos-fd-mysql.py) | 10 |
3 files changed, 5 insertions, 5 deletions
diff --git a/contrib/fd-plugins/mysql-python/BareosFdMySQLclass.py b/contrib/fd-plugins/bareos_mysql_dump/BareosFdMySQLclass.py index 3bd8618b5..3bd8618b5 100755 --- a/contrib/fd-plugins/mysql-python/BareosFdMySQLclass.py +++ b/contrib/fd-plugins/bareos_mysql_dump/BareosFdMySQLclass.py diff --git a/contrib/fd-plugins/mysql-python/README.md b/contrib/fd-plugins/bareos_mysql_dump/README.md index 93864472a..93864472a 100644 --- a/contrib/fd-plugins/mysql-python/README.md +++ b/contrib/fd-plugins/bareos_mysql_dump/README.md diff --git a/contrib/fd-plugins/mysql-python/bareos-fd-mysql.py b/contrib/fd-plugins/bareos_mysql_dump/__init__.py index 2b588e740..a4d3984a9 100644 --- a/contrib/fd-plugins/mysql-python/bareos-fd-mysql.py +++ b/contrib/fd-plugins/bareos_mysql_dump/__init__.py @@ -5,14 +5,14 @@ # License: AGPLv3 # Provided by the Bareos FD Python plugin interface -from bareosfd import * +import bareosfd # This module contains the wrapper functions called by the Bareos-FD, the functions call the corresponding # methods from your plugin class -from BareosFdWrapper import * +import BareosFdWrapper # This module contains the used plugin class -from BareosFdMySQLclass import * +import BareosFdMySQLclass def load_bareos_plugin(plugindef): ''' @@ -20,7 +20,7 @@ def load_bareos_plugin(plugindef): We use it to instantiate the plugin class ''' # BareosFdWrapper.bareos_fd_plugin_object is the module attribute that holds the plugin class object - BareosFdWrapper.bareos_fd_plugin_object = BareosFdMySQLclass (plugindef); - return bRC_OK + BareosFdWrapper.bareos_fd_plugin_object = BareosFdMySQLclass(plugindef); + return bareosfd.bRC_OK # the rest is done in the Plugin module |