Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
pull_request:
schedule:
- cron: 30 6 * * *

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check

- name: Run sanity tests
run: ansible-test sanity --docker -v --color --python 3.6
run: ansible-test sanity --docker -v --color
2 changes: 1 addition & 1 deletion plugins/module_utils/cloudstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def get_pod(self, key=None):
pods = self.query_api('listPods', **args)
if pods:
return self._get_by_key(key, pods['pod'][0])
self.module.fail_json(msg="Pod %s not found" % pod_name)
self.module.fail_json(msg="Pod %s not found in zone %s" % (self.module.params.get('pod'), self.get_zone(key='name')))

def get_ip_address(self, key=None):
if self.ip_address:
Expand Down
14 changes: 0 additions & 14 deletions plugins/modules/cs_storage_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,20 +415,6 @@ def get_storage_provider(self, type="primary"):
return provider
self.fail_json(msg="Storage provider %s not found" % provider)

def get_pod(self, key=None):
pod = self.module.params.get('pod')
if not pod:
return None
args = {
'name': pod,
'zoneid': self.get_zone(key='id'),
}
pods = self.query_api('listPods', **args)
if pods:
return self._get_by_key(key, pods['pod'][0])

self.fail_json(msg="Pod %s not found" % self.module.params.get('pod'))

def get_cluster(self, key=None):
cluster = self.module.params.get('cluster')
if not cluster:
Expand Down
2 changes: 2 additions & 0 deletions plugins/modules/cs_vlan_ip_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
description:
- Name of the pod.
type: str
version_added: 1.0.0
state:
description:
- State of the network ip range.
Expand Down Expand Up @@ -109,6 +110,7 @@
VLAN range to the Physical Network with a Public traffic type.
type: bool
default: no
version_added: 1.0.0
for_system_vms:
description:
- C(yes) if IP range is set to system vms, C(no) if not
Expand Down
3 changes: 3 additions & 0 deletions tests/integration/targets/cs_cluster/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
cs_cluster:
name: "{{ cs_resource_prefix }}-cluster"
zone: "{{ cs_resource_prefix }}-zone"
pod: "{{ cs_resource_prefix }}-pod"
hypervisor: Simulator
cluster_type: CloudManaged
register: cluster_origin
Expand All @@ -77,6 +78,7 @@
cs_cluster:
name: "{{ cs_resource_prefix }}-cluster"
zone: "{{ cs_resource_prefix }}-zone"
pod: "{{ cs_resource_prefix }}-pod"
hypervisor: Simulator
cluster_type: CloudManaged
register: cluster_origin
Expand All @@ -95,6 +97,7 @@
cs_cluster:
name: "{{ cs_resource_prefix }}-Cluster"
zone: "{{ cs_resource_prefix }}-Zone"
pod: "{{ cs_resource_prefix }}-pod"
hypervisor: Simulator
cluster_type: CloudManaged
register: cluster
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/targets/cs_storage_pool/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
assert:
that:
- sp is failed
- "sp.msg == 'Pod DNE not found'"
- "'Pod DNE not found' in sp.msg"

- name: create storage pool in check mode
cs_storage_pool:
Expand Down