Fix wart in docker tests with slowTest decorator

This commit is contained in:
Daniel A. Wozniak 2020-04-24 19:33:43 +00:00 committed by Daniel Wozniak
parent 675cd8db04
commit 8f6ac02c32

View file

@ -131,7 +131,7 @@ class DockerNetworkTestCase(ModuleCase, SaltReturnAssertsMixin):
output = process.communicate()[0]
log.debug("Output from %s:\n%s", " ".join(cmd), output)
if process.returncode != 0 and "No such image" not in output:
if process.returncode != 0 and "No such image" not in str(output):
raise Exception("Failed to destroy image")
def run_state(self, function, **kwargs):