ansible/ansible — pull request #5690 by sivel (2014-01-20 22:47:30+00:00)
Title: rax module: Fix regex match

The printf regex match should work with 0 or more numeric padding characters, not 1 or more.

The is currently causing the host increment to not work properly with more simplistic printf formatting or no formatting supplied for the name parameter.

When using something such as:

```yaml
- name: Create a server
hosts: localhost
gather_facts: False
tasks:
- name: Server build requests
local_action:
module: rax
credentials: ~/.raxpub
name: test
flavor: performance1-1
image: ubuntu-1204-lts-precise-pangolin
region: IAD
state: present
wait: yes
meta:
group: test
register: rax
```

The server name created will always be 'test1' instead of incrementing the the host number to be test2, test3, etc...on successive runs.