Skip to content

Commit ca0ef91

Browse files
Merge pull request #46 from ansible-network/bt_fix_overwrite_bug
Fix overwrite bug Reviewed-by: Nilashish Chakraborty <[email protected]> https://github.com/NilashishC
2 parents 46da85a + c8d6e3a commit ca0ef91

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
@@ -261,6 +261,7 @@ def main():
261261
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:
262262

263263
```
264+
rm -rf rmb_tests/roles/my_role
264265
ansible-playbook -e rm_dest=./rmb_tests/roles/my_role \
265266
-e structure=role \
266267
-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)