fix azure test case failure for function apps module (#33658)

This commit is contained in:
ZhijunZhao 2017-12-08 01:41:19 +08:00 committed by Sam Doran
parent b78ab37a94
commit f8d7e477f0

View file

@ -19,10 +19,13 @@
azure_rm_functionapp_facts: azure_rm_functionapp_facts:
resource_group: '{{ resource_group }}' resource_group: '{{ resource_group }}'
name: azfuncci name: azfuncci
register: results
- name: assert the facts were retrieved - name: assert the facts were retrieved
assert: assert:
that: '{{ ansible_facts.azure_functionapps|length == 1 }}' that:
- results.ansible_facts.azure_functionapps|length == 1
- results.ansible_facts.azure_functionapps[0].name == 'azfuncci'
- name: delete basic function app - name: delete basic function app
azure_rm_functionapp: azure_rm_functionapp: