mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
PEP8 E712 fixes (#21916)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user