strip newline from return of cmd
This commit is contained in:
parent
08af0963d2
commit
2f39f46ac0
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue