Skip to content

Commit

Permalink
Merge pull request #2810 from feliperuhland/fix-low-level-swarm-example
Browse files Browse the repository at this point in the history
Fix swarm low-level documentation examples
  • Loading branch information
aiordache authored Oct 7, 2021
2 parents 3c5f0d0 + 13c316d commit fcb35f4
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 fcb35f4

Please sign in to comment.