diff options
author | Anca Iordache <aiordache@users.noreply.github.com> | 2021-10-08 00:04:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-08 00:04:02 +0200 |
commit | fcb35f419748f264f331c7f114aea3e5703ad6e8 (patch) | |
tree | c7618482b7dd7a56c614016b3bf433b9393f8e42 | |
parent | 3c5f0d0ee12c486dee1671e2e1ec10e8e6510952 (diff) | |
parent | 13c316de692fb21521df5e019c65f9241f7ab52a (diff) | |
download | docker-py-fcb35f419748f264f331c7f114aea3e5703ad6e8.tar.gz |
Merge pull request #2810 from feliperuhland/fix-low-level-swarm-example
Fix swarm low-level documentation examples
-rw-r--r-- | docker/api/swarm.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docker/api/swarm.py b/docker/api/swarm.py index 2ec1aea..db40fdd 100644 --- a/docker/api/swarm.py +++ b/docker/api/swarm.py @@ -58,10 +58,10 @@ class SwarmApiMixin: 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 ) @@ -354,8 +354,8 @@ class SwarmApiMixin: Example: - >>> key = client.get_unlock_key() - >>> client.unlock_node(key) + >>> key = client.api.get_unlock_key() + >>> client.unlock_swarm(key) """ if isinstance(key, dict): @@ -396,7 +396,7 @@ class SwarmApiMixin: '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) """ |