-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Merge software definitions for integration installation for p…
- Loading branch information
Showing
9 changed files
with
986 additions
and
527 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
30 changes: 30 additions & 0 deletions
30
omnibus/config/patches/datadog-agent-integrations-py3/remove-maxfile-maxpath-psutil.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Partially reverts https://github.com/giampaolo/psutil/pull/1863 to remove the maxpath / maxfile fetch | ||
diff --git a/psutil/__init__.py b/psutil/__init__.py | ||
index 1a113bc3..ce962a61 100644 | ||
--- a/psutil/__init__.py | ||
+++ b/psutil/__init__.py | ||
@@ -2012,23 +2012,7 @@ def disk_partitions(all=False): | ||
If *all* parameter is False return physical devices only and ignore | ||
all others. | ||
""" | ||
- def pathconf(path, name): | ||
- try: | ||
- return os.pathconf(path, name) | ||
- except (OSError, AttributeError): | ||
- pass | ||
- | ||
- ret = _psplatform.disk_partitions(all) | ||
- if POSIX: | ||
- new = [] | ||
- for item in ret: | ||
- nt = item._replace( | ||
- maxfile=pathconf(item.mountpoint, 'PC_NAME_MAX'), | ||
- maxpath=pathconf(item.mountpoint, 'PC_PATH_MAX')) | ||
- new.append(nt) | ||
- return new | ||
- else: | ||
- return ret | ||
+ return _psplatform.disk_partitions(all) | ||
|
||
|
||
def disk_io_counters(perdisk=False, nowrap=True): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.