mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Remove unneeded kwargs in virt states
Avoid using kwargs to get the states parameters, perfer documented
named parameters with default value.
(cherry picked from commit c7c5d6ee88
)
This commit is contained in:
parent
0871c028c6
commit
30981d25b9
@ -254,7 +254,8 @@ class LibvirtTestCase(TestCase, LoaderModuleMockMixin):
|
||||
os_type=None, arch=None,
|
||||
disk=None, disks=None, nic=None, interfaces=None,
|
||||
graphics=None, hypervisor=None,
|
||||
seed=True, install=True, pub_key=None, priv_key=None)
|
||||
seed=True, install=True, pub_key=None, priv_key=None,
|
||||
connection=None, username=None, password=None)
|
||||
|
||||
with patch.dict(virt.__salt__, { # pylint: disable=no-member
|
||||
'virt.vm_state': MagicMock(side_effect=CommandExecutionError('not found')),
|
||||
|
Loading…
Reference in New Issue
Block a user