daemon: updated utils.cmd to use returncode instead of wait(), removed redundant default encoding value for calls to decode/encode

This commit is contained in:
Blake Harnden 2023-06-08 14:34:24 -07:00
parent 94f070e0ff
commit 81230edac3
5 changed files with 8 additions and 8 deletions

View file

@ -170,7 +170,7 @@ class LxcNode(CoreNode):
"""
logger.debug("node(%s) create file(%s) mode(%o)", self.name, file_path, mode)
temp = NamedTemporaryFile(delete=False)
temp.write(contents.encode("utf-8"))
temp.write(contents.encode())
temp.close()
temp_path = Path(temp.name)
directory = file_path.parent