Skip to content
Snippets Groups Projects
Verified Commit 89ee42fe authored by Arie Peterson's avatar Arie Peterson
Browse files

Fix droplet status value in CI following Greenhost API change

parent ec3cdfde
No related branches found
No related tags found
No related merge requests found
......@@ -4,9 +4,11 @@ import base64
import logging
import os
import sys
import yaml
import greenhost_cloud
import yaml
from kubernetes import client, config
from openappstack import ansible
CLUSTER_PATH = os.path.join(os.getcwd(), 'clusters')
......@@ -117,7 +119,7 @@ class Cluster:
image=self.disk_image_id)
droplet_id = droplet['droplet']['id']
log.info('Created droplet id: %s', droplet_id)
greenhost_cloud.wait_for_state(droplet_id, 'running')
greenhost_cloud.wait_for_state(droplet_id, 'active')
self.set_info_by_droplet_id(droplet_id)
def set_info_by_droplet_id(self, droplet_id):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment