read from variable correctly

This commit is contained in:
Tyler Johnson 2019-10-05 19:59:54 -06:00
parent d1d006280e
commit 22fe057ab9
No known key found for this signature in database
GPG Key ID: 691E31397E27D004

View File

@ -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)