Skip to content

Commit

Permalink
Fix swarm low-level documentation examples
Browse files Browse the repository at this point in the history
I realize that low-level documentation has outdated examples, so I
created issue #2800 to fix that

Signed-off-by: Felipe Ruhland <[email protected]>
  • Loading branch information
feliperuhland committed Apr 7, 2021
1 parent 96c1272 commit 13c316d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker/api/swarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ def create_swarm_spec(self, *args, **kwargs):
Example:
>>> spec = client.create_swarm_spec(
>>> spec = client.api.create_swarm_spec(
snapshot_interval=5000, log_entries_for_slow_followers=1200
)
>>> client.init_swarm(
>>> client.api.init_swarm(
advertise_addr='eth0', listen_addr='0.0.0.0:5000',
force_new_cluster=False, swarm_spec=spec
)
Expand Down Expand Up @@ -354,8 +354,8 @@ def unlock_swarm(self, key):
Example:
>>> key = client.get_unlock_key()
>>> client.unlock_node(key)
>>> key = client.api.get_unlock_key()
>>> client.unlock_swarm(key)
"""
if isinstance(key, dict):
Expand Down Expand Up @@ -396,7 +396,7 @@ def update_node(self, node_id, version, node_spec=None):
'Role': 'manager',
'Labels': {'foo': 'bar'}
}
>>> client.update_node(node_id='24ifsmvkjbyhk', version=8,
>>> client.api.update_node(node_id='24ifsmvkjbyhk', version=8,
node_spec=node_spec)
"""
Expand Down

0 comments on commit 13c316d

Please sign in to comment.