Skip to content

Commit 727166e

Browse files
committed
Updated example
There is no restart method, and it's better to use serverLifeCycleRuntimes
1 parent 1e18553 commit 727166e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Explore the API, change properties and undeploy applications:
5656
>>>
5757
5858
59-
Restart all managed servers asynchronous:
59+
Start all managed servers asynchronously:
6060

6161
.. code-block:: python
6262
@@ -67,9 +67,9 @@ Restart all managed servers asynchronous:
6767
admin_server_name = wls.edit.adminServerName
6868
6969
running_jobs = []
70-
for server in wls.domainRuntime.serverRuntimes:
70+
for server in wls.domainRuntime.serverLifeCycleRuntimes:
7171
if server.name != admin_server_name:
72-
running_jobs.append(server.restart(prefer_async=True))
72+
running_jobs.append(server.start(prefer_async=True))
7373
7474
while running_jobs:
7575
for job in running_jobs:

0 commit comments

Comments
 (0)