psadmin-io / rundeck-oci-nodes-plugin

A Resource Model Source plugin that provides OCI Instances as nodes for Rundeck
MIT License
2 stars 0 forks source link

Add option to only return ACTIVE nodes? #4

Closed kbens closed 4 years ago

kbens commented 4 years ago

We can't process TERMINATED, since they point to VNICs that don't exist. We either have to skip, or return but skip the IP for hostname. Not sure why we would want the later?

Quick fix is to skip by adding this at line 40:

    if instance.lifecycle_state == 'TERMINATED':
        continue