You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
Perusing the code it appears the windows_file module does not implement the template function, which might be the most immediately useful part of pyinfra for me right off the bat. Am I mistaken and is there a way to use this feature since seemingly the windows_file.put operation just needs to be invoked instead of the file.put at the end of the templating logic?
Describe the solution you'd like
Support template in windows_file operations
The text was updated successfully, but these errors were encountered:
Mostly copy/pasted from file.template. One tweak is making the IO buffer-type bytes since
win_rm _put_file expects a bytes input. Therefore output_file was changed from:
```
output_file = six.StringIO(output)
```
to
```
output_file = six.BytesIO(six.ensure_binary(output))
```
References https://github.com/Fizzadar/pyinfra/issues/645
Mostly copy/pasted from file.template. One tweak is making the IO buffer-type bytes since
win_rm _put_file expects a bytes input. Therefore output_file was changed from:
```
output_file = six.StringIO(output)
```
to
```
output_file = six.BytesIO(six.ensure_binary(output))
```
References https://github.com/Fizzadar/pyinfra/issues/645
Is your feature request related to a problem? Please describe
Perusing the code it appears the windows_file module does not implement the template function, which might be the most immediately useful part of pyinfra for me right off the bat. Am I mistaken and is there a way to use this feature since seemingly the windows_file.put operation just needs to be invoked instead of the file.put at the end of the templating logic?
Describe the solution you'd like
Support template in windows_file operations
The text was updated successfully, but these errors were encountered: