mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 08:35:21 +00:00
read from variable correctly
This commit is contained in:
parent
d1d006280e
commit
22fe057ab9
@ -190,7 +190,7 @@ class PkgModuleTest(ModuleCase, SaltReturnAssertsMixin):
|
|||||||
self.run_function('pkg.install', [self.pkg])
|
self.run_function('pkg.install', [self.pkg])
|
||||||
|
|
||||||
hold_ret = self.run_function('pkg.hold', [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.run_function('pkg.remove', [self.pkg])
|
||||||
self.skipTest('Versionlock could not be installed on this system: {}'.format(ret))
|
self.skipTest('Versionlock could not be installed on this system: {}'.format(ret))
|
||||||
self.assertIn(self.pkg, hold_ret)
|
self.assertIn(self.pkg, hold_ret)
|
||||||
|
Loading…
Reference in New Issue
Block a user