Skip to content

Commit 7b661ff

Browse files
committed
Remove useless sys path modification in many plugins
Signed-off-by: Ronan Abhamon <[email protected]>
1 parent e6e0e38 commit 7b661ff

File tree

6 files changed

+0
-12
lines changed

6 files changed

+0
-12
lines changed

SOURCES/etc/xapi.d/plugins/hyperthreading.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
# -*- coding: utf-8 -*-
33

44
import json
5-
import sys
65

76
import XenAPIPlugin
87

9-
sys.path.append('.')
108
from xcpngutils import configure_logging, run_command, error_wrapped
119

1210
@error_wrapped

SOURCES/etc/xapi.d/plugins/netdata.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66

77
import errno
88
import json
9-
import sys
109

1110
import XenAPIPlugin
1211

13-
sys.path.append('.')
1412
from xcpngutils import configure_logging, error_wrapped, install_package, run_command
1513
from xcpngutils.operationlocker import OperationLocker
1614

SOURCES/etc/xapi.d/plugins/raid.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33

44
import json
55
import subprocess
6-
import sys
76

87
import XenAPIPlugin
98

10-
sys.path.append('.')
119
from xcpngutils import configure_logging, run_command, error_wrapped
1210
from xcpngutils.operationlocker import OperationLocker
1311

SOURCES/etc/xapi.d/plugins/smartctl.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
# -*- coding: utf-8 -*-
33

44
import json
5-
import sys
65
import XenAPIPlugin
76

8-
sys.path.append('.')
97
from xcpngutils import configure_logging, run_command, error_wrapped
108
from xcpngutils.operationlocker import OperationLocker
119

SOURCES/etc/xapi.d/plugins/updater.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44
from functools import wraps
55
import ConfigParser
66
import json
7-
import sys
87
import yum
98

109
import XenAPIPlugin
1110

12-
sys.path.append('.')
1311
from xcpngutils import configure_logging, run_command, error_wrapped
1412
from xcpngutils.filelocker import FileLocker
1513

SOURCES/etc/xapi.d/plugins/zfs.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33

44
import errno
55
import json
6-
import sys
76

87
import XenAPIPlugin
98

10-
sys.path.append('.')
119
from xcpngutils import configure_logging, run_command, error_wrapped
1210

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

0 commit comments

Comments
 (0)