This was an issue where we would return a failure if there were empty files. This makes sure that if the file is empty we only warn.
Changes
We were currently doing a != on the id_rsa which IS a private key. This changes it so the check is this:
first: authorized_keys --> second: id_rsa --> third: anything else except known_hosts --> last: known_hosts
This removed a bunch of whitespace issues too.
add if else on the id_rsa that only warns if the file is empty.
Background https://github.com/digitalocean/marketplace-partners/issues/49
This was an issue where we would return a failure if there were empty files. This makes sure that if the file is empty we only warn.
Changes
!=
on the id_rsa which IS a private key. This changes it so the check is this:first: authorized_keys --> second: id_rsa --> third: anything else except known_hosts --> last: known_hosts