Merge pull request #12012 from resmo/for-ansible

cloudstack: fixes and consistency change
pull/10957/head
Brian Coca 9 years ago
commit 29724f359b

@ -56,8 +56,8 @@ class AnsibleCloudStack(object):
'project': 'project', 'project': 'project',
'account': 'account', 'account': 'account',
'domain': 'domain', 'domain': 'domain',
'displaytext': 'displaytext', 'displaytext': 'display_text',
'displayname': 'displayname', 'displayname': 'display_name',
'description': 'description', 'description': 'description',
} }

@ -4,6 +4,8 @@
gather_facts: no gather_facts: no
tags: tags:
- cloudstack - cloudstack
vars:
cs_resource_prefix: "cs{{ resource_prefix | default('') }}"
roles: roles:
- { role: test_cs_sshkeypair, tags: test_cs_sshkeypair } - { role: test_cs_sshkeypair, tags: test_cs_sshkeypair }
- { role: test_cs_affinitygroup, tags: test_cs_affinitygroup } - { role: test_cs_affinitygroup, tags: test_cs_affinitygroup }

@ -15,7 +15,7 @@
assert: assert:
that: that:
- ag|failed - ag|failed
- ag.msg == "missing required arguments: name" - "ag.msg == 'missing required arguments: name'"
- name: test present affinity group - name: test present affinity group
cs_affinitygroup: name={{ cs_resource_prefix }}_ag cs_affinitygroup: name={{ cs_resource_prefix }}_ag

@ -15,7 +15,7 @@
assert: assert:
that: that:
- ig|failed - ig|failed
- ig.msg == "missing required arguments: name" - "ig.msg == 'missing required arguments: name'"
- name: test present instance group - name: test present instance group
cs_instancegroup: name={{ cs_resource_prefix }}_ig cs_instancegroup: name={{ cs_resource_prefix }}_ig

@ -15,7 +15,7 @@
assert: assert:
that: that:
- sg|failed - sg|failed
- sg.msg == "missing required arguments: name" - "sg.msg == 'missing required arguments: name'"
- name: test present security group - name: test present security group
cs_securitygroup: name={{ cs_resource_prefix }}_sg cs_securitygroup: name={{ cs_resource_prefix }}_sg

@ -10,7 +10,7 @@
assert: assert:
that: that:
- sshkey|failed - sshkey|failed
- sshkey.msg == "missing required arguments: name" - "sshkey.msg == 'missing required arguments: name'"
- name: test ssh key creation - name: test ssh key creation
cs_sshkeypair: name={{ cs_resource_prefix }}-sshkey cs_sshkeypair: name={{ cs_resource_prefix }}-sshkey

Loading…
Cancel
Save