Skip to content

Fix flag description for --host-add#648

Merged
dnephin merged 1 commit intodocker:masterfrom
thaJeztah:fix-host-add-description
Oct 30, 2017
Merged

Fix flag description for --host-add#648
dnephin merged 1 commit intodocker:masterfrom
thaJeztah:fix-host-add-description

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

The --host-add flag adds a new host:ip mapping. Even though adding an entry is idempotent (adding the same mapping multiple times does not update the service's definition), it does not update an existing mapping with a new IP-address (multiple IP-addresses can be defined for a host).

This patch removes the "or update" part from the flag's description.

relates to moby/moby#35325

There's possibly some other flags that fall in the same category, but I kept those out for now (can do a follow up)

ping @vdemeester @dnephin PTAL

The `--host-add` flag adds a new `host:ip` mapping. Even though
adding an entry is idempotent (adding the same mapping multiple
times does not update the service's definition), it does not
_update_  an existing mapping with a new IP-address (multiple
IP-addresses can be defined for a host).

This patch removes the "or update" part from the flag's
description.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@codecov-io
Copy link
Copy Markdown

codecov-io commented Oct 28, 2017

Codecov Report

Merging #648 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master    #648      +/-   ##
=========================================
- Coverage    49.8%   49.8%   -0.01%     
=========================================
  Files         210     210              
  Lines       17292   17292              
=========================================
- Hits         8613    8612       -1     
- Misses       8253    8254       +1     
  Partials      426     426

Copy link
Copy Markdown
Contributor

@boaz0 boaz0 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Collaborator

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

LGTM 🐮

Copy link
Copy Markdown
Contributor

@dnephin dnephin left a comment

Choose a reason for hiding this comment

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

LGTM

@dnephin dnephin merged commit a79e742 into docker:master Oct 30, 2017
@GordonTheTurtle GordonTheTurtle added this to the 17.11.0 milestone Oct 30, 2017
@thaJeztah thaJeztah deleted the fix-host-add-description branch October 30, 2017 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants