Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so dont bother with any of their useless mail servers here and just use oauth login instead. Thank the nice Russians for causing that. :)

Paste

Pasted as JSON by Ritesh ( 9 years ago )
version: '2.0'
test_demo:
    type: direct
 
    input:
      - projects

    tasks:
      get_vms:
        with-items: project in <% $.projects %>
        action: nova.servers_list search_opts={ 'tenant_id':<% $.project %> }
        publish:
          vm_ids: <% task(get_vms).result[0].id %>
        on-success:
          - delete_vms

      delete_vms:
        with-items: id in <% $.vm_ids %>
        action: nova.servers_get_password server=<% $.id %>

 

Revise this Paste

Your Name: Code Language: