ansible / ansible-jupyter-kernel

Jupyter Notebook Kernel for running Ansible Tasks and Playbooks
Other
534 stars 62 forks source link

copy link file BUG ! #95

Open windwiny opened 2 years ago

windwiny commented 2 years ago

https://github.com/ansible/ansible-jupyter-kernel/blob/d9c0c0022442dc8c96a8eaab4d9c68de51c3c3b1/ansible_kernel/kernel.py#L232

I can't understand why do that copy , copy other extraneous files ?

And copy file recursive and following the link,
Start jupyter in ~/nbs directory , has a link ~/nbs/mytmp --> to another big directory , and run ansible playbook, that copy's will consumed entire disk space.

At least should check with os.path.islink()