cloudstack: fix pep8 cs_cluster

This commit is contained in:
Rene Moser 2017-05-28 01:01:38 +02:00 committed by René Moser
commit 9fe3891d65
3 changed files with 49 additions and 30 deletions

View file

@ -44,6 +44,21 @@
- cluster|failed
- "cluster.msg == 'missing required arguments: name'"
- name: test fail if pod not found
cs_cluster:
name: "{{ cs_resource_prefix }}-cluster"
zone: "{{ cs_resource_prefix }}-zone"
hypervisor: simulator
cluster_type: CloudManaged
pod: unexistent
register: cluster
ignore_errors: true
- name: verify results of fail if missing name
assert:
that:
- cluster|failed
- "cluster.msg == 'Pod unexistent not found in zone {{ cs_resource_prefix }}-zone'"
- name: test create cluster in check mode
cs_cluster:
name: "{{ cs_resource_prefix }}-cluster"

View file

@ -165,7 +165,6 @@ lib/ansible/modules/cloud/azure/azure_rm_virtualnetwork_facts.py
lib/ansible/modules/cloud/centurylink/clc_loadbalancer.py
lib/ansible/modules/cloud/cloudscale/cloudscale_server.py
lib/ansible/modules/cloud/cloudstack/cs_account.py
lib/ansible/modules/cloud/cloudstack/cs_cluster.py
lib/ansible/modules/cloud/cloudstack/cs_configuration.py
lib/ansible/modules/cloud/cloudstack/cs_domain.py
lib/ansible/modules/cloud/cloudstack/cs_facts.py