Skip to content

Commit 5e74a58

Browse files
authored
Fix #77 - extend address test case (#83)
* Add `hostname` parameter to address task * Add hostname to address vars * Add changelog entry
1 parent 5cd86a2 commit 5e74a58

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bugfixes:
2+
- Fix \#77 - hostname parameter missing in task for address test case

tests/test_playbooks/tasks/address.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
ipaddress: "{{ address.ipaddress }}"
1111
is_gateway: "{{ address.is_gateway | default(omit) }}"
1212
description: "{{ address.description | default(omit) }}"
13+
hostname: "{{ address.hostname | default(omit) }}"
1314
mac_address: "{{ address.mac_address | default(omit) }}"
1415
owner: "{{ address.owner | default(omit) }}"
1516
tag: "{{ address.tag | default(omit) }}"

tests/test_playbooks/vars/address.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
base_address_data:
33
ipaddress: 10.65.22.1
44
subnet: 10.65.22.0/24
5+
hostname: foo.example.com
56
section: Customers
67
is_gateway: yes

0 commit comments

Comments
 (0)