Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Strip newline from docker-machine ip output #4974

Merged
merged 1 commit into from
Dec 6, 2019
Merged

Conversation

Wiezzel
Copy link

@Wiezzel Wiezzel commented Dec 5, 2019

Docker-machine outputs a newline character at the end of command output. In case of ip command this results in invalid address string if the trailing newline is not stripped.

@codecov
Copy link

codecov bot commented Dec 6, 2019

Codecov Report

Merging #4974 into b0.22 will increase coverage by 0.94%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##            b0.22    #4974      +/-   ##
==========================================
+ Coverage   89.22%   90.17%   +0.94%     
==========================================
  Files         233      233              
  Lines       21784    21782       -2     
==========================================
+ Hits        19436    19641     +205     
+ Misses       2348     2141     -207

Docker-machine outputs a newline character at the end of command output.
In case of `ip` command this results in invalid address string if the
trailing newline is not stripped.
@Wiezzel Wiezzel force-pushed the fix_task_api_getaddrinfo branch from 085421b to 58d7f37 Compare December 6, 2019 08:42
Copy link
Contributor

@maaktweluit maaktweluit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Would be nice to strip inside the .command( and/or the DockerCommandHandler(

@Wiezzel
Copy link
Author

Wiezzel commented Dec 6, 2019

@maaktweluit Nice idea but we don't have much time now so I'm merging it as is.

@Wiezzel Wiezzel merged commit e288d1b into b0.22 Dec 6, 2019
@etam etam deleted the fix_task_api_getaddrinfo branch December 9, 2019 13:44
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants