Skip to content

Commit

Permalink
fix: add deprecated warning message in insights.combiners.mounts (#3613)
Browse files Browse the repository at this point in the history
* fix: add deprecated warning message in insights.combiners.mounts

Signed-off-by: Chen lizhong <[email protected]>

* fix: update version to 3.1.25

Signed-off-by: Chen lizhong <[email protected]>

* docs: add deprecated info into doc string

Signed-off-by: Chen lizhong <[email protected]>

* docs: use warning instead of note

Signed-off-by: Chen lizhong <[email protected]>
  • Loading branch information
chenlizhong authored Dec 1, 2022
1 parent 4d3a4a0 commit dc3e5dc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions insights/combiners/mounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,16 @@
from insights.parsers import keyword_search
from insights.parsers.mount import Mount, ProcMounts, MountInfo
from insights.parsers.mount import MountEntry, MountAddtlInfo
from insights.util import deprecated


@combiner([Mount, ProcMounts, MountInfo])
class Mounts(object):
"""
.. warning::
This class is deprecated now and will be removed in version 3.2.0.
Use insights.parsers.mount directly.
``Mounts`` combiner consolidates data from the parsers in
``insights.parsers.mounts`` module.
Expand All @@ -42,6 +47,7 @@ class Mounts(object):
"""

def __init__(self, binmount, procmounts, mountinfo):
deprecated(Mounts, "Use the parsers in insights.parsers.mount module instead", "3.1.25")
self._mounts = {}

all_mount_points = set().union(
Expand Down

0 comments on commit dc3e5dc

Please sign in to comment.