- From: Mike Tewner <
>
- To:
- Subject: [chef] knife ssh Return Values
- Date: Sun, 26 May 2013 16:10:05 +0300
Hi Guys!
We're using "knife ssh" to deploy parts of our application. It seems, though, that knife ssh returns "0" if it can't connect to the host:
:/tmp$ knife ssh 'name:MikeEnv01C1' 'ls /etc'
MikeEnv01C1 fstab makedev.d rmt
.
.
.
:/tmp$ echo $?
0
... and to a host which was brought down:
:/tmp$ knife ssh 'name:SteveEnv02C' 'ls /etc'
echo $?
WARNING: Failed to connect to -- Errno::ETIMEDOUT: Connection timed out - connect(2)
:/tmp$ echo $?
0
:/tmp$ knife -v
Chef: 11.4.0
Is this "As Designed"?
-Mike
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are
addressed. Please note that any disclosure, copying or distribution of the
content of this information is strictly forbidden. If you have received this
email message in error, please destroy it immediately and notify its sender.
- [chef] knife ssh Return Values, Mike Tewner, 05/26/2013
Archive powered by MHonArc 2.6.16.