Skip to content

Commit

Permalink
docker_swarm_service: Fix description of limits.memory (ansible#66078)
Browse files Browse the repository at this point in the history
This option corresponds to the '--limit-memory' option. Also
fix other mentions memory reservation instead of limit.
  • Loading branch information
palvarez89 authored and countless-integers committed Jan 6, 2020
1 parent f9c93c6 commit 154baa1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ansible/modules/cloud/docker/docker_swarm_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,12 @@
type: float
memory:
description:
- "Service memory reservation in format C(<number>[<unit>]). Number is a positive integer.
- "Service memory limit in format C(<number>[<unit>]). Number is a positive integer.
Unit can be C(B) (byte), C(K) (kibibyte, 1024B), C(M) (mebibyte), C(G) (gibibyte),
C(T) (tebibyte), or C(P) (pebibyte)."
- C(0) equals no reservation.
- C(0) equals no limit.
- Omitting the unit defaults to bytes.
- Corresponds to the C(--reserve-memory) option of C(docker service create).
- Corresponds to the C(--limit-memory) option of C(docker service create).
type: str
type: dict
version_added: "2.8"
Expand Down

0 comments on commit 154baa1

Please sign in to comment.