From 3aed86c71aa74503d5a7af3b9079226d2c699296 Mon Sep 17 00:00:00 2001 From: Fernando Flores Date: Mon, 24 Apr 2023 13:03:16 -0600 Subject: [PATCH] remove duplicate function --- plugins/module_utils/encode.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/plugins/module_utils/encode.py b/plugins/module_utils/encode.py index fa84c6fb3..cfcfd2bf0 100644 --- a/plugins/module_utils/encode.py +++ b/plugins/module_utils/encode.py @@ -496,25 +496,6 @@ def uss_file_tag(self, file_path): except Exception: return None - def uss_tag_encoding(self, file_path, tag): - """Tag the file/directory specified with the given code set. - If `file_path` is a directory, all of the files and subdirectories will - be tagged recursively. - - Arguments: - file_path {str} -- Absolute file path to tag. - tag {str} -- Code set to tag the file/directory. - - Raises: - TaggingError: When the chtag command fails. - """ - is_dir = os.path.isdir(file_path) - - tag_cmd = "chtag -{0}c {1} {2}".format("R" if is_dir else "t", tag, file_path) - rc, out, err = self.module.run_command(tag_cmd) - if rc != 0: - raise TaggingError(file_path, tag, rc, out, err) - class EncodeError(Exception): def __init__(self, message):