Skip to content

Commit 6ba07b3

Browse files
shrsrlhercot
authored andcommitted
Pull request reviewed changes
1 parent 4f005a7 commit 6ba07b3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

plugins/modules/mso_schema_site_anp_epg_domain.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143
resolution_immediacy: pre-provision
144144
state: present
145145
delegate_to: localhost
146+
146147
- name: Remove a domain from a site EPG
147148
cisco.mso.mso_schema_site_anp_epg_domain:
148149
host: mso_host
@@ -159,6 +160,7 @@
159160
resolution_immediacy: pre-provision
160161
state: absent
161162
delegate_to: localhost
163+
162164
- name: Query a domain associated with a specific site EPG
163165
cisco.mso.mso_schema_site_anp_epg_domain:
164166
host: mso_host
@@ -174,6 +176,7 @@
174176
state: query
175177
delegate_to: localhost
176178
register: query_result
179+
177180
- name: Query all domains associated with a site EPG
178181
cisco.mso.mso_schema_site_anp_epg_domain:
179182
host: mso_host
@@ -262,7 +265,7 @@ def main():
262265
schema_id = schema_obj.get('id')
263266

264267
# Get template
265-
templates = [t.get('name') for t in schema_obj['templates']]
268+
templates = [t.get('name') for t in schema_obj.get('templates')]
266269
if template not in templates:
267270
mso.fail_json(msg="Provided template '{0}' does not exist. Existing templates: {1}".format(template, ', '.join(templates)))
268271
template_idx = templates.index(template)

tests/integration/targets/mso_schema_site_anp_epg_domain/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Test code for the MSO modules
22
# Copyright: (c) 2020, Lionel Hercot (@lhercot) <[email protected]>
33
# Copyright: (c) 2018, Dag Wieers (@dagwieers) <[email protected]> (based on mso_site test case)
4-
#
4+
# Copyright: (c) 2020, Shreyas Srish (@shrsr) <[email protected]>
55

66
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
77

0 commit comments

Comments
 (0)