Terraform: Allow lock flag to get set to false (#53873)

This change allows a false value to propagate appropriately to the terraform cli.
This commit is contained in:
Nick Curry 2019-03-16 22:34:02 -05:00 committed by Abhijeet Kasurde
parent 6852186235
commit e8972ce459

View file

@ -337,7 +337,7 @@ def main():
if module.params.get('lock'):
command.append('-lock=true')
else:
command.append('-lock=true')
command.append('-lock=false')
if module.params.get('lock_timeout') is not None:
command.append('-lock-timeout=%ds' % module.params.get('lock_timeout'))