mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5d2652f31b
I tried a playbook with the following (accidentally wrong) task: tasks: - name: authorized key test authorized_key: key=/home/sam/.ssh/id_rsa.pub key_options='command="/foo/bar"' user=sam I got the following traceback: TASK: [authorized key test] *************************************************** failed: [localhost] => {"failed": true, "parsed": false} Traceback (most recent call last): File "/home/sam/.ansible/tmp/ansible-tmp-1427110003.65-277897441194582/authorized_key", line 2515, in <module> main() File "/home/sam/.ansible/tmp/ansible-tmp-1427110003.65-277897441194582/authorized_key", line 460, in main results = enforce_state(module, module.params) File "/home/sam/.ansible/tmp/ansible-tmp-1427110003.65-277897441194582/authorized_key", line 385, in enforce_state parsed_new_key = (parsed_new_key[0], parsed_new_key[1], parsed_options, parsed_new_key[3]) TypeError: 'NoneType' object has no attribute '__getitem__' With this fix, I see the expected error instead: TASK: [authorized key test] *************************************************** failed: [localhost] => {"failed": true} msg: invalid key specified: /home/sam/.ssh/id_rsa.pub |
8 years ago | |
---|---|---|
.. | ||
cli | 8 years ago | |
compat | 8 years ago | |
config | 10 years ago | |
errors | 8 years ago | |
executor | 8 years ago | |
galaxy | 8 years ago | |
inventory | 8 years ago | |
module_utils | 8 years ago | |
modules | 8 years ago | |
parsing | 8 years ago | |
playbook | 8 years ago | |
plugins | 8 years ago | |
template | 8 years ago | |
utils | 8 years ago | |
vars | 8 years ago | |
__init__.py | 9 years ago | |
constants.py | 8 years ago | |
release.py | 8 years ago | |
test-requirements.txt | 10 years ago |