Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nornir write_file util not printing properly #620

Open
hans-vvv opened this issue Dec 19, 2020 · 3 comments
Open

Nornir write_file util not printing properly #620

hans-vvv opened this issue Dec 19, 2020 · 3 comments

Comments

@hans-vvv
Copy link

Hi,

This is my first contribution on Github ever. Hopefully I didn't miss anything ;)

The write_file Nornir utility is not printing anything if default dry_run kwarg is not used when calling the function. In line 35 "None" is used as default, this evaluates in line 53 to "True". Changing line 35 to False resolves this issue.

Regards,
Hans

https://github.com/nornir-automation/nornir_utils/blob/master/nornir_utils/plugins/tasks/files/write_file.py

@hans-vvv
Copy link
Author

Sorry, to be more precise,

task.is_dry_run(dry_run) currently evaluates to True.

@ktbyers
Copy link
Collaborator

ktbyers commented Dec 22, 2020 via email

@ktbyers
Copy link
Collaborator

ktbyers commented Dec 22, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants