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]>
(cherry picked from commit c79bf52)
  • Loading branch information
chenlizhong authored and xiangce committed Dec 1, 2022
1 parent 45721e8 commit 5bc233a
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 5bc233a

Please sign in to comment.