strip newline from return of cmd

This commit is contained in:
Wes Barnett 2021-04-25 12:03:45 -04:00
parent 08af0963d2
commit 2f39f46ac0
No known key found for this signature in database
GPG key ID: 1070BCC98C18BD66

View file

@ -56,7 +56,7 @@ class SnapperCmd:
self.cmd.append(f"--type {snapshot_type}")
def __call__(self):
return os.popen(self.__str__()).read()
return os.popen(self.__str__()).read().rstrip("\n")
def __str__(self):
return " ".join(self.cmd)