Skip to content

Commit c8d6e3a

Browse files
author
Bradley A. Thornton
committed
Fix overwrite bug
1 parent 1089c02 commit c8d6e3a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ def main():
262262
The tests rely on a role generated by the resource module builder. After changes to the resource module builder, the role should be regenerated and the tests modified and run as needed. To generate the role after changes:
263263

264264
```
265+
rm -rf rmb_tests/roles/my_role
265266
ansible-playbook -e rm_dest=./rmb_tests/roles/my_role \
266267
-e structure=role \
267268
-e model=models/myos/interfaces/myos_interfaces.yml \

rmb_tests/roles/my_role/library/myos_facts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
myos.facts.facts import Facts
1515

1616
ANSIBLE_METADATA = {'metadata_version': '1.1',
17-
'status': [u'preview'],
17+
'status': ['preview'],
1818
'supported_by': '<support_group>'}
1919

2020

roles/scaffold_rm_facts/tasks/template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
- name: Check to see if the file exists
22
stat:
3-
path: "{{ parent_directory}}/{{ template['destination'] }}"
3+
path: "{{ template['destination'] }}"
44
register: file_stat
55

66
- name: Create the file, if it doesnt exist already or override is set

0 commit comments

Comments
 (0)