mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-10-31 06:42:55 +00:00 
			
		
		
		
	Fix SnapshotProvider failing depending on python3.7
This commit is contained in:
		| @@ -2,7 +2,7 @@ | ||||
| # All Rights Reserved. See LICENSE file for details. | ||||
|  | ||||
| import re | ||||
| from subprocess import run, CalledProcessError | ||||
| from subprocess import run, CalledProcessError, PIPE | ||||
| from getpass import getuser | ||||
| from os.path import isdir | ||||
| from datetime import datetime | ||||
| @@ -87,7 +87,8 @@ class SnapshotProvider: | ||||
|         )) | ||||
|  | ||||
|     def _get_stdout(self, *args, **kwargs): | ||||
|         kwargs['capture_output'] = True | ||||
|         kwargs['stdout'] = PIPE | ||||
|         kwargs['stderr'] = PIPE | ||||
|         stdout_bytes = self._run(*args, **kwargs).stdout | ||||
|         return stdout_bytes.decode().rstrip('\n') | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user