Skip to content

Commit be97d43

Browse files
remove duplicate function (#753)
1 parent 673bd70 commit be97d43

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

plugins/module_utils/encode.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -496,25 +496,6 @@ def uss_file_tag(self, file_path):
496496
except Exception:
497497
return None
498498

499-
def uss_tag_encoding(self, file_path, tag):
500-
"""Tag the file/directory specified with the given code set.
501-
If `file_path` is a directory, all of the files and subdirectories will
502-
be tagged recursively.
503-
504-
Arguments:
505-
file_path {str} -- Absolute file path to tag.
506-
tag {str} -- Code set to tag the file/directory.
507-
508-
Raises:
509-
TaggingError: When the chtag command fails.
510-
"""
511-
is_dir = os.path.isdir(file_path)
512-
513-
tag_cmd = "chtag -{0}c {1} {2}".format("R" if is_dir else "t", tag, file_path)
514-
rc, out, err = self.module.run_command(tag_cmd)
515-
if rc != 0:
516-
raise TaggingError(file_path, tag, rc, out, err)
517-
518499

519500
class EncodeError(Exception):
520501
def __init__(self, message):

0 commit comments

Comments
 (0)