Skip to content

Commit

Permalink
Remove useless sys path modification in many plugins
Browse files Browse the repository at this point in the history
Signed-off-by: Ronan Abhamon <[email protected]>
  • Loading branch information
Wescoeur committed Feb 21, 2025
1 parent e6e0e38 commit 7b661ff
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions SOURCES/etc/xapi.d/plugins/hyperthreading.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
# -*- coding: utf-8 -*-

import json
import sys

import XenAPIPlugin

sys.path.append('.')
from xcpngutils import configure_logging, run_command, error_wrapped

@error_wrapped
Expand Down
2 changes: 0 additions & 2 deletions SOURCES/etc/xapi.d/plugins/netdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@

import errno
import json
import sys

import XenAPIPlugin

sys.path.append('.')
from xcpngutils import configure_logging, error_wrapped, install_package, run_command
from xcpngutils.operationlocker import OperationLocker

Expand Down
2 changes: 0 additions & 2 deletions SOURCES/etc/xapi.d/plugins/raid.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@

import json
import subprocess
import sys

import XenAPIPlugin

sys.path.append('.')
from xcpngutils import configure_logging, run_command, error_wrapped
from xcpngutils.operationlocker import OperationLocker

Expand Down
2 changes: 0 additions & 2 deletions SOURCES/etc/xapi.d/plugins/smartctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
# -*- coding: utf-8 -*-

import json
import sys
import XenAPIPlugin

sys.path.append('.')
from xcpngutils import configure_logging, run_command, error_wrapped
from xcpngutils.operationlocker import OperationLocker

Expand Down
2 changes: 0 additions & 2 deletions SOURCES/etc/xapi.d/plugins/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
from functools import wraps
import ConfigParser
import json
import sys
import yum

import XenAPIPlugin

sys.path.append('.')
from xcpngutils import configure_logging, run_command, error_wrapped
from xcpngutils.filelocker import FileLocker

Expand Down
2 changes: 0 additions & 2 deletions SOURCES/etc/xapi.d/plugins/zfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@

import errno
import json
import sys

import XenAPIPlugin

sys.path.append('.')
from xcpngutils import configure_logging, run_command, error_wrapped

# returns a JSON dict {<poolname>: {mountpoint: <mountpoint>, ...}}
Expand Down

0 comments on commit 7b661ff

Please sign in to comment.