Skip to content

Commit

Permalink
chore: remove the unused get_owner from specs.default (#3429)
Browse files Browse the repository at this point in the history
Signed-off-by: Xiangce Liu <[email protected]>
  • Loading branch information
xiangce authored Jun 1, 2022
1 parent 171267d commit a735094
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions insights/specs/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
import os
import signal

from grp import getgrgid
from os import stat
from pwd import getpwuid

from insights.components.virtualization import IsBareMetal
from insights.core.context import HostContext
from insights.core.dr import SkipComponent
Expand All @@ -42,14 +38,6 @@
logger = logging.getLogger(__name__)


def get_owner(filename):
""" tuple: Return tuple containing uid and gid of file filename """
st = stat(filename)
name = getpwuid(st.st_uid).pw_name
group = getgrgid(st.st_gid).gr_name
return (name, group)


def _make_rpm_formatter(fmt=None):
""" function: Returns function that will format output of rpm query command """
if fmt is None:
Expand Down

0 comments on commit a735094

Please sign in to comment.