mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
PEP8 E712 fixes (#21916)
This commit is contained in:
parent
5d39056379
commit
305c88700d
34 changed files with 103 additions and 123 deletions
|
@ -231,7 +231,7 @@ def main():
|
|||
gateway.delete_fw_rule(**kwargs)
|
||||
result['changed'] = True
|
||||
|
||||
if not module.check_mode and result['changed'] == True:
|
||||
if not module.check_mode and result['changed'] is True:
|
||||
task = gateway.save_services_configuration()
|
||||
if task:
|
||||
vca.block_until_completed(task)
|
||||
|
|
|
@ -762,7 +762,7 @@ def deploy_template(vsphere_client, guest, resource_pool, template_src, esxi, mo
|
|||
vm.set_extra_config(vm_extra_config)
|
||||
|
||||
# Power on if asked
|
||||
if power_on_after_clone == True:
|
||||
if power_on_after_clone is True:
|
||||
state = 'powered_on'
|
||||
power_state(vm, state, True)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue