diff --git a/lib/ansible/plugins/lookup/sequence.py b/lib/ansible/plugins/lookup/sequence.py index 1040bb4ebd4..677d15319af 100644 --- a/lib/ansible/plugins/lookup/sequence.py +++ b/lib/ansible/plugins/lookup/sequence.py @@ -100,8 +100,8 @@ class LookupModule(LookupBase): "can't parse arg %s=%r as integer" % (arg, arg_raw) ) - if 'format' in args: - self.format = args.pop("format") + if 'format' in args: + self.format = args.pop("format") if args: raise AnsibleError( "unrecognized arguments to with_sequence: %r"