From 22fe057ab9a7b29b29253c008f233199cb770974 Mon Sep 17 00:00:00 2001 From: Tyler Johnson Date: Sat, 5 Oct 2019 19:59:54 -0600 Subject: [PATCH] read from variable correctly --- tests/integration/modules/test_pkg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/modules/test_pkg.py b/tests/integration/modules/test_pkg.py index 8dc4146794..2009921536 100644 --- a/tests/integration/modules/test_pkg.py +++ b/tests/integration/modules/test_pkg.py @@ -190,7 +190,7 @@ class PkgModuleTest(ModuleCase, SaltReturnAssertsMixin): self.run_function('pkg.install', [self.pkg]) hold_ret = self.run_function('pkg.hold', [self.pkg]) - if 'versionlock is not installed' in 'hold_ret': + if 'versionlock is not installed' in hold_ret: self.run_function('pkg.remove', [self.pkg]) self.skipTest('Versionlock could not be installed on this system: {}'.format(ret)) self.assertIn(self.pkg, hold_ret)