Browse Source

Merge "Fix workflow documents"

tags/9.0.0.0b1
Zuul 1 week ago
parent
commit
78727a9815
2 changed files with 5 additions and 5 deletions
  1. 1
    1
      doc/source/main_features.rst
  2. 4
    4
      doc/source/terminology/workflows.rst

+ 1
- 1
doc/source/main_features.rst View File

@@ -253,7 +253,7 @@ YAML example
253 253
           action: nova.servers_create name=<% $.vm_name %> \
254 254
                   image=<% $.image_ref %> flavor=<% $.flavor_ref %>
255 255
           publish:
256
-            vm_ids: <% $.create_servers.id %>
256
+            vm_ids: <% task().result.id %>
257 257
           on-success:
258 258
             - wait_for_servers
259 259
 

+ 4
- 4
doc/source/terminology/workflows.rst View File

@@ -26,7 +26,7 @@ YAML example
26 26
         create_server:
27 27
           action: nova.servers_create name=<% $.vm_name %> image=<% $.image_ref %> flavor=<% $.flavor_ref %>
28 28
           publish:
29
-            vm_id: <% $.id %>
29
+            vm_id: <% task().result.id %>
30 30
           on-success:
31 31
             - wait_for_instance
32 32
         wait_for_instance:
@@ -76,7 +76,7 @@ YAML example of direct workflow
76 76
         create_vm:
77 77
           action: nova.servers_create name=<% $.vm_name %> image=<% $.image_id %> flavor=<% $.flavor_id %>
78 78
           publish:
79
-            vm_id: <% $.id %>
79
+            vm_id: <% task().result.id %>
80 80
           on-error:
81 81
             - send_error_email
82 82
           on-success:
@@ -124,11 +124,11 @@ YAML example of reverse workflow
124 124
         create_vm:
125 125
           action: nova.servers_create name=<% $.vm_name %> image=<% $.image_id %> flavor=<% $.flavor_id %>
126 126
           publish:
127
-            vm_id: <% $.id %>
127
+            vm_id: <% task().result.id %>
128 128
         search_for_ip:
129 129
           action: nova.floating_ips_findall instance_id=null
130 130
           publish:
131
-            vm_ip: <% $[0].ip %>
131
+            vm_ip: <% task().result.ip %>
132 132
         associate_ip:
133 133
           action: nova.servers_add_floating_ip server=<% $.vm_id %> address=<% $.vm_ip %>
134 134
           requires: [search_for_ip]

Loading…
Cancel
Save