From ac00c9ced7f05c087f5465224e22eed8e6978d5e Mon Sep 17 00:00:00 2001 From: klshxsh <klshxsh@users.noreply.github.com> Date: Mon, 12 Oct 2015 12:41:00 +0100 Subject: [PATCH] changed 'string' to 'percent' for _serial Note that this allows both integers (e.g. 3) and percentages (e.g. "30%") Also changed default back to 0 rather than '0' --- lib/ansible/playbook/play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index a017ac4a719..a24eb133ccf 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -87,7 +87,7 @@ class Play(Base, Taggable, Become): _any_errors_fatal = FieldAttribute(isa='bool', default=False, always_post_validate=True) _force_handlers = FieldAttribute(isa='bool', always_post_validate=True) _max_fail_percentage = FieldAttribute(isa='percent', always_post_validate=True) - _serial = FieldAttribute(isa='string', default='0', always_post_validate=True) + _serial = FieldAttribute(isa='percent', default=0, always_post_validate=True) _strategy = FieldAttribute(isa='string', default='linear', always_post_validate=True) # =================================================================================