redhat-openstack / infrared

Plugin based framework that aims to provide an easy-to-use CLI for Ansible based projects
https://infrared.readthedocs.io/en/latest/index.html
Apache License 2.0
100 stars 96 forks source link

printing messages on hypervisor .bashrc makes infrared fail #361

Open ebarreraz opened 5 years ago

ebarreraz commented 5 years ago

I had a welcome message on .bashrc and It make some ssh-key comparation fail.

Removing the message allowed me to continue the deployment

vgri commented 5 years ago

Hey @ebarreraz

If shell is chatty, especially with special characters in the greeting, when you ssh, commands as scp will fail as it depends on a clear ssh connection.

You can add to your .bashrc exception when not running interactively, don't do anything [[ $- == i ]] || return

Thanks for bringing this up, hope this will solve the issue for you.